Re: POJO's in Forms

2013-11-08 Thread Thiago H de Paula Figueiredo
On Fri, 08 Nov 2013 08:59:14 -0200, thegreatmewel wrote: Hi Thiago, it works now, thanks a lot. So the t:id attribute is bound to the component and the value attribute is bound to the property. Yep, but, actually, t:id isn't bound to anything: it's not a parameter, it's a component id, n

Re: POJO's in Forms

2013-11-08 Thread thegreatmewel
Hi Thiago, it works now, thanks a lot. So the t:id attribute is bound to the component and the value attribute is bound to the property. I think thats all a little bit confusing for new tapestry users like me. First of all the "value" attribute. In standard HTML the value attribute of an input

Re: POJO's in Forms

2013-11-07 Thread Thiago H de Paula Figueiredo
On Thu, 07 Nov 2013 18:17:10 -0200, thegreatmewel wrote: I'm not sure what do you mean with a getter for passwordRequest? I have a passwordRepeat field and a getter getPasswordRepeat(). I thought that is enough. As you haven't set the 'value' parameter explicitly, you bound it to the

Re: POJO's in Forms

2013-11-07 Thread thegreatmewel
I'm not sure what do you mean with a getter for passwordRequest? I have a passwordRepeat field and a getter getPasswordRepeat(). I thought that is enough. On 11/07/13 20:35, Thiago H de Paula Figueiredo wrote: Aren't you missing a getter for passwordRequest? On Thu, 07 Nov 2013 17:27:52 -0200

Re: POJO's in Forms

2013-11-07 Thread Thiago H de Paula Figueiredo
Aren't you missing a getter for passwordRequest? On Thu, 07 Nov 2013 17:27:52 -0200, thegreatmewel wrote: Yep, im using 5.4-alpha-24 and with bootstrap it looks a lot nicer. Now I have a strange problem with my password repeat field. I always get the error: org.apache.tapestry5.ioc.inte

Re: POJO's in Forms

2013-11-07 Thread thegreatmewel
Yep, im using 5.4-alpha-24 and with bootstrap it looks a lot nicer. Now I have a strange problem with my password repeat field. I always get the error: org.apache.tapestry5.ioc.internal.OperationException Render queue error in BeginRender[user/Register:passwordrepeat]: Parameter 'translate' of

Re: POJO's in Forms

2013-11-06 Thread Thiago H de Paula Figueiredo
On Wed, 06 Nov 2013 18:21:04 -0200, thegreatmewel wrote: Hi Thiago, im overwhelmed, it works like a charm :). I just had to add 'class="form-horizontal"' to my form. Thanks a lot! Are you using 5.4-alpha-24? Nice to know someone is using one of my rare (so far!) commits and it's working

Re: POJO's in Forms

2013-11-06 Thread thegreatmewel
Hi Thiago, im overwhelmed, it works like a charm :). I just had to add 'class="form-horizontal"' to my form. Thanks a lot! On 11/06/13 13:26, Thiago H de Paula Figueiredo wrote: On Wed, 06 Nov 2013 09:36:58 -0200, Thiago H de Paula Figueiredo wrote: Since 5.4-alpha-24 you can actually have B

Re: POJO's in Forms

2013-11-06 Thread Thiago H de Paula Figueiredo
On Wed, 06 Nov 2013 09:36:58 -0200, Thiago H de Paula Figueiredo wrote: Since 5.4-alpha-24 you can actually have BeanEditForm and BeanEditor generate the HTML you want through setting some configuration symbols. I just didn't documented it yet. Later today I'll post an example. 5.4-alpha

Re: POJO's in Forms

2013-11-06 Thread Thiago H de Paula Figueiredo
Hi, The Greate Mewel! :) On Wed, 06 Nov 2013 08:53:48 -0200, thegreatmewel wrote: // and my form http://tapestry.apache.org/schema/tapestry_5_3.xsd";> t:validate="required" class="form-control" /> As you see i liked to use bootstrap and

POJO's in Forms

2013-11-06 Thread thegreatmewel
Hi, I'm new to Tapestry and have some problems using forms. I have the following simple setup: // my entity class @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @NonVisual public Long id; @Validate("required") public String firstName