I have a @Property annotation but still is not working. I tried many guys and is not working so far the last thing was:
<t:form object="user" > <t:errors/> <t:label for="lastName"/>: <t:TextField t:id="user.lastName" t:validate="required,minlength=3" size="30"/> <br/> <t:label for="userName"/>: <t:TextField t:id="user.username" t:validate="required,minlength=3" size="30"/> <br/> <t:label for="password"/>: <t:TextField t:id="user.password" t:validate="required,minlength=3" size="30"/> <br/> <input type="submit" value="Crear usuario"/> </t:form> </t:layout> and I get: Failure parsing template context:TestForm.tml: Component id 'user.lastName' is not valid; component ids must be valid Java identifiers: start with a letter, and consist of letters, numbers and underscores. If I use t:id="username" It said that property is not bound, so is there a way to get an object from a form like BeanEditForm does using the Form component ? Thanks in advance guys Thiago H. de Paula Figueiredo wrote: > > Em Tue, 22 Sep 2009 05:54:09 -0300, Sergey Didenko > <sergey.dide...@gmail.com> escreveu: > >> Hi Limonn, >> >> you need a public setter for your User object. > > Or annotate it with @Property. This only works in Tapestry pages, > components and mixins. > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/form-that-create-an-object-tp25414886p25570145.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org