[ 
https://issues.apache.org/jira/browse/WICKET-1261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timo Rantalaiho updated WICKET-1261:
------------------------------------

    Fix Version/s:     (was: 1.4-M4)
                   1.5-M1

Thanks, a good idea. Being a new feature, this belongs to 1.5 I think (and then 
we can do a generified version straight away).

Java foundation classes should definitely include a Range<T> class.

> 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-M1
>            Reporter: Rens Verhage
>            Priority: Minor
>             Fix For: 1.5-M1
>
>         Attachments: RangeBoundaryValidator.java
>
>
> 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.

Reply via email to