You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Frank Bille Jensen (JIRA)" <ji...@apache.org> on 2008/04/20 20:46:28 UTC

[jira] Updated: (WICKET-1261) New validator: validating range boundaries

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

Frank Bille Jensen updated WICKET-1261:
---------------------------------------

    Fix Version/s:     (was: 1.4-M1)
                   1.4-M2

> 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.4-M2
>
>         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.