RE: How to correctly cut form into reusable parts

2013-11-04 Thread Hottois Ludwig
Hi ! Actually, this was really helpful :) Thanks to your idea, my fonctionality is ok now :D Thank you -Message d'origine- De : Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] Envoyé : samedi 2 novembre 2013 12:11 À : Tapestry users Objet : Re: How to correctly cut

Re: How to correctly cut form into reusable parts

2013-11-02 Thread Geoff Callender
And you can probably still do the JSR-303 validation server-side in processSubmission() with something like this (untested)... import javax.inject.Inject; import javax.validation.ConstraintViolation; import javax.validation.Validator; import javax.validation.groups.Default; @Inject private

Re: How to correctly cut form into reusable parts

2013-11-02 Thread Geoff Callender
Sorry, just realised you want the Address component to handle an address bean, not the parent form's bean. Hmmm. That probably means JSR-303 annotations in the address bean will be ignored, but you can still do manual validation like that shown in processSubmission(). On 02/11/2013, at 10:10 P

Re: How to correctly cut form into reusable parts

2013-11-02 Thread Geoff Callender
Assuming you're editing a bean, try this. In parent put something like this...

Re: How to correctly cut form into reusable parts

2013-10-31 Thread George Christman
Are you passing your object into your address component? On Thu, Oct 31, 2013 at 12:14 PM, Hottois Ludwig < ludwig.hott...@worldline.com> wrote: > Hi everyone ! > > I was asking myself during a long time how to correctly create a form for > create a user, but in this form, i want include a p

Re: How to correctly cut form into reusable parts

2013-10-31 Thread Thiago H de Paula Figueiredo
On Thu, 31 Oct 2013 14:14:32 -0200, Hottois Ludwig wrote: Hi everyone ! Hi! I was asking myself during a long time how to correctly create a form for create a user, but in this form, i want include a part wich is a form for create an address. I was thinking first about putting this p

How to correctly cut form into reusable parts

2013-10-31 Thread Hottois Ludwig
Hi everyone ! I was asking myself during a long time how to correctly create a form for create a user, but in this form, i want include a part wich is a form for create an address. I was thinking first about putting this part of the form, which is created for instruct informations about the us