You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2009/01/03 14:29:44 UTC

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

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

Juergen Donnerstag resolved WICKET-1261.
----------------------------------------

    Resolution: Won't Fix
      Assignee: Juergen Donnerstag

A RangeValidator exists by now which looks very similar to yours.

> 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
>            Assignee: Juergen Donnerstag
>            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.