Inheriting from AbstractField and doing something like this finally worked wonders for me:
@Override protected void processSubmission(String elementName) { formSupport.defer(new Runnable() { public void run() { // do validations, commit values, etc. } }); } That's a pretty solution and works okay. Note that defer() has to be invoked in processSubmission(), otherwise it won't work Klaus Kopruch wrote: > > Hello * > > I have a component DateSelector which must be in a form. DateSelector > contains 3 Select components. > > My question is, how can I perform cross-field validation in DateSelector? > As far as I see, there is no event which the component gets which I can > use to perform this task. DateSelector gets the 3 VALIDATE events from the > 3 embedded Select components but what I need is an event which will be > sent to DateSelector after the 3 VALIDATE events, because not till then > the 3 values from the 3 embedded Select components are set. > > So, what I need in my component is a kind of VALIDATE_FORM and also a > SUCCESS event (in order to set the resulting value from the 3 values). > > Does anybody know, how a component can get those kind of events? > > Thanks > > Klaus > -- View this message in context: http://old.nabble.com/Cross-field-validation-in-a-component-tp26690823p28287235.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