take a look at the EqualInputValidator [0] and adapt the onValidate method
to your needs.

[0]
http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/validation/EqualInputValidator.java

hth,
 gerolf


On 6/14/07, kubino <[EMAIL PROTECTED]> wrote:


Hi ,

It is possible to have something like this

DateTextField dateFrom = new DateTextField("someid",new
PropertyModel(somemodel,"dateFrom"));
DateTextField dateTo = new DateTextField("someid",new
PropertyModel(somemodel,"dateTo"));

dateTo.add(DateValidator.minimum(someModel.getDateFrom));

I want to not have dateTo before date from, but this validator doesnt help
me becouse it trows me null pointer exception, i looks like the minimum
value is passed in the construction time, not dynamically getted after
conversion. Is there a solution?

Thx in advance

--
View this message in context:
http://www.nabble.com/Validating-Date-to-against-Date-From-tf3920457.html#a11116291
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to