Re: component tag

Philip Luppens <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <9074784.1150141379779.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
> I am trying to push an object in one compent but it
> is not working.
> 
> I'm doing this:
> 
> component: /template/person/Person.jsp
> <fieldset>
> 	<legend>Person</legend>
> 	<ww:textfield id="name" name="name" label="Name" />
> <ww:textfield id="email" name="email" label="Email"
> " />
> </fieldset>
> 
> page: SavePerson.jsp
> <form action="save!save.html" method="post"
> accept-charset="UTF-8">
> <fieldset>
> 	<ww:push value="person">
> <ww:component theme="person" template="person.jsp"
> p" />
> 	</ww:push>
> 	<ww:submit cssClass="button" value="Ok" />
> </fieldset>
> </form>
> 
> action: SavePerson.java
> public class Save extends Page {
> 	private Person person = new Person();
> 	...
> 	public Person getPerson() {
> 		return person
> 	}
> 	...
> }

Try to use <ww:component> and nested <ww:param name="myVar" value="%{myObject}"/> instead.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=3296&messageID=66278#66278

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.