I need a form with one field.  But the form has 2 submit images with
different listeners.  One listener is for Insert in the database and the
otherone is for Search in the database.  

When the user press the submit image associated to the Insert listener,
i check some constraints with the validation delegate and with the
StringValidator.  But when the user press Search i dont want to validate
this.  In this moment, i reach this thing with this code:

public void search(IRequestCycle cycle) {
    GenericValidationDelegate delegate = (GenericValidationDelegate)
        getBeans().getBean("delegate");
    delegate.reset();
}

delegate.clear() also work.  But the problem is, all the values of the
submited form, are reseted when the page is rendered.  Any suggestion?

-- 
Juan Alvarez                                     Fluid Signal S.A.
mailto:[EMAIL PROTECTED]        http://www.fluidsignal.com/
Key fingerprint: 15C4 0986 A174 862A B607 8EEA 934F 8649 07E2 EA40


-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to