You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rudy De Busscher (JIRA)" <de...@myfaces.apache.org> on 2010/07/05 13:15:51 UTC

[jira] Updated: (EXTVAL-104) Improve validation in case of a range where only minimum or maximum is specified.

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

Rudy De Busscher updated EXTVAL-104:
------------------------------------

    Status: Patch Available  (was: Open)

> Improve validation in case of a range where only minimum or maximum is specified.
> ---------------------------------------------------------------------------------
>
>                 Key: EXTVAL-104
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-104
>             Project: MyFaces Extensions Validator
>          Issue Type: Improvement
>          Components: Property Validation
>    Affects Versions: 1.2.3, 2.0.3, 1.1.3
>            Reporter: Rudy De Busscher
>            Priority: Minor
>             Fix For: 1.2.4-SNAPSHOT, 2.0.4-SNAPSHOT, 1.1.4-SNAPSHOT
>
>         Attachments: EXTVAL-104.patch
>
>
> The range validations (@LongRange and @DoubleRange) are using the MIN_VALUE and MAX_VALUE (of Long or Double) in the case when the user doesn't supply a minimum or maximum value.
> The JSF Validator therefore always uses the range validation error message (javax.faces.validator.LongRangeValidator.NOT_IN_RANGE ) like "Specified attribute is not between the expected values of 10 and 9.223.372.036.854.775.807" when user specified only minimum like @LongRange(minimum=10)
> Applying this improvement, the used message keys should be the same as by using the standard validators directly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.