New validator: validating range boundaries
------------------------------------------
Key: WICKET-1261
URL: https://issues.apache.org/jira/browse/WICKET-1261
Project: Wicket
Issue Type: New Feature
Components: wicket
Affects Versions: 1.4.0-M1
Reporter: Rens Verhage
Priority: Minor
Fix For: 1.4.0-M1
I wrote a simple validator for validating range boundaries. A user may for
example define a period of time by defining a start and end date in two form
fields. The given period doesn't make sense if the start date lies anywhere
beyond the end date. Attached validator can be used by adding form.add(new
RangeBoundaryValidator(from, to)) to your form construction code, where from
and to are to be of equal value type and the value type should implement
java.lang.Comparable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.