You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2008/10/02 08:49:46 UTC

[jira] Updated: (TRINIDAD-931) converter and validator 'preferred' metadata needs updating

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

Matthias Weßendorf updated TRINIDAD-931:
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.10-core
                   1.2.10-core
         Assignee: Matthias Weßendorf
           Status: Resolved  (was: Patch Available)

> converter and validator 'preferred' metadata needs updating
> -----------------------------------------------------------
>
>                 Key: TRINIDAD-931
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-931
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Gabrielle Crawford
>            Assignee: Matthias Weßendorf
>            Priority: Trivial
>             Fix For: 1.2.10-core, 1.0.10-core
>
>         Attachments: trunk.patch, trunk12.patch
>
>
> The preferred metadata for converters an validators is not correct. The meaning of 'preferred' is something that the developer will usually want to set. Currently we don't have 'preferred' on 'maximum' for some of the range validators, but we have it on all the message[*] attrs that generally don't need to be set.
> Here's the metadata I suggest for preferred for converters and validators.  If the attr isn't listed it shouldn't have preferred
> af:convertColor  (favorite-property = patterns)
>  patterns = preferred
>  transparentAllowed = preferred
> af:convertDateTime (favorite-property = type)
>  dateStyle = preferred
>  pattern = preferred
>  timeStyle = preferred
>  timeZone = preferred
>  type = preferred
> af:convertNumber (favorite-property = type)
>  integerOnly = preferred
>  maxFractionDigits = preferred
>  maxIntegerDigits = preferred
>  type = preferred
>  minFractionDigits = preferred
>  minIntegerDigits = preferred
>  pattern = preferred
>  currencyCode = preferred
> af:validateByteLength (favorite-property = maximum)
>  maximum = preferred
>  encoding = preferred
> af:validateDateRestriction
>  invalidDays = preferred
>  invalidDaysOfWeek = preferred
>  invalidMonths = preferred
> af:validateDateTimeRange
>  maximum = preferred
>  minimum = preferred
> af:validateDoubleRange
>  maximum=preferred
>  minimum = preferred
> af:validateLength
>  minimum = preferred
>  maximum = preferred
> af:validateLongRange
>  minimum = preferred
>  maximum = preferred
> af:validateRegExp (favorite-property = pattern)
>  pattern = preferred

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