On 10/31/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
I don't think this approach would be workable for me. I am interested in performing validation checks on complete objects and not on their individual fields represented by form components. Also, I want to use the functionality of these objects to implement validation.
The closest I could get to what I want is to use the converted input from a compound property model, but that model is typically located in a Panel which is not a form component.
I am now solving it by doing custom validation in the onSubmit().
wicket validators do not validate model data, they validate the input. if the input is valid that input is pushed into the componnet's model - that way your component models never contain invalid objects.
what you want to work with is formcomponent.getconvertedinput()
I don't think this approach would be workable for me. I am interested in performing validation checks on complete objects and not on their individual fields represented by form components. Also, I want to use the functionality of these objects to implement validation.
The closest I could get to what I want is to use the converted input from a compound property model, but that model is typically located in a Panel which is not a form component.
I am now solving it by doing custom validation in the onSubmit().
-igorOn 10/31/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:Hi,-------------------------------------------------------------------------
I want to implement a custom form validation. Neverhteless, if I use IFormValidator and add the validator to the form, the validator is called before the form component models are updated. As a result I am validating against stale data.
Is there a way to make sure that my validator gets updated component models before it is called? Otherwise, it seems like I need to implement my own validation mechanism in onSubmit(). But then, what is the use of the IFormValidator?
Cheers
Erik
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user