Ahh so you do want to change all our validators and all the validators that are currently written by others:
So you want to change
void validate(final FormComponent component);
to
void validate(final ValidationContext component);
exactly
Ok but if we let FormComponent implement IValidationContext
then please, please try to map it on existing methods.. I really don't like another getValueXXXX method on FormComponent
The current X number of input/output value methods we already have is already very confusing.
And then the right method would be getConvertedValue() which is for that interface a bit strange i know. Rename getConvertedValue?
well, i am certainly not married to the idea of formcomponent implementing this interface directly - and yeah, there are already a ton of methods. maybe the right thing would be to go through and clean these up. meanwhile we can start with the adapter thing and change it later.
so does that final IValidationContext<T> { void validate(T); void error(String key, Map params); } work for everyone?
-Igor
johan
-------------------------------------------------------------------------
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-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------------------------- 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-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop