Re: Cross Validation in dynamic Forms

2010-02-18 Thread Stephan Windmüller
Dominik Gätjens wrote: > Thank you Stephan this works perfect and it was a big step in my > understanding of Tapestry. Do you mind if i create a wiki articel out > of your code example? Of course not. I would have done it myself but did not find the time. Regards Stephan --

AW: AW: Cross Validation in dynamic Forms

2010-02-18 Thread Dominik Gätjens
2010 16:23 An: users@tapestry.apache.org Betreff: Re: AW: Cross Validation in dynamic Forms Dominik Gätjens wrote: > I read this thread but don't understand it. Do you have a code example for me? The setup is complex. Follow these steps and let me know if there is anything unclear:

Re: AW: Cross Validation in dynamic Forms

2010-02-17 Thread Stephan Windmüller
Dominik Gätjens wrote: > I read this thread but don't understand it. Do you have a code example for me? The setup is complex. Follow these steps and let me know if there is anything unclear: 1. Save controlNames of all fields If your field has the id "myField", use this code: - private Ma

AW: Cross Validation in dynamic Forms

2010-02-17 Thread Dominik Gätjens
Cross Validation in dynamic Forms Dominik Gätjens wrote: > I'm building a dynamic form with textfields on the fly and need to do > some cross validation. This all works pretty and i find two fields > that are invalid together. > > But how can I report this error AND mark both fie

Re: Cross Validation in dynamic Forms

2010-02-17 Thread Stephan Windmüller
Dominik Gätjens wrote: > I'm building a dynamic form with textfields on the fly and need to do > some cross validation. This all works pretty and i find two fields > that are invalid together. > > But how can I report this error AND mark both fields as invalid? I > don't have a component to call

AW: Cross Validation in dynamic Forms

2010-02-16 Thread Dominik Gätjens
} I checked the onAfterSubmit() with my debugger and find always the two same TextField Objects. Dominik -Ursprüngliche Nachricht- Von: Ulrich Stärk [mailto:u...@spielviel.de] Gesendet: Dienstag, 16. Februar 2010 15:38 An: Tapestry users Betreff: Re: Cross Validation in dynamic

Re: Cross Validation in dynamic Forms

2010-02-16 Thread Ulrich Stärk
Depends on how you are doing the "dynamic" part. If you are looping over your textfields, then injecting them into the page class should work, e.g. /> and "@Inject private TextField foo" should give you the field of the current iteration. Uli On 16.02.2010 14:34 schrieb Dominik Gätjens: Hello

Cross Validation in dynamic Forms

2010-02-16 Thread Dominik Gätjens
Hello List, I'm building a dynamic form with textfields on the fly and need to do some cross validation. This all works pretty and i find two fields that are invalid together. But how can I report this error AND mark both fields as invalid? I don't have a component to call Form.recordErro