Differend submit, different constraints and maintain the value
Juan Alvarez <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
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