[richfaces-issues] [JBoss JIRA] (RF-12511) using f:validateDoubleRange but default message not the validatorMessage is displayed

Jan Papousek (JIRA) jira-events at lists.jboss.org
Thu Oct 18 09:57:01 EDT 2012


     [ https://issues.jboss.org/browse/RF-12511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Papousek reassigned RF-12511:
---------------------------------

    Assignee: Brian Leathem  (was: Jan Papousek)


When a user tries to set a string to a long/double variable, default message is displayed. Messages for range validator contains the correct text. 
                
> using f:validateDoubleRange but default message not the validatorMessage is displayed
> -------------------------------------------------------------------------------------
>
>                 Key: RF-12511
>                 URL: https://issues.jboss.org/browse/RF-12511
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.2.0.Final
>            Reporter: Radim Hanus
>            Assignee: Brian Leathem
>
> The validatorMessage is displayed when the input is left empty but when I insert wrong value for instance "XX" the the default validator message is displayed not the validatorMessage.  The same behaviour if fallbacking to server side validation.
>  
> facelet snippet:
> {code}
> <h:panelGrid columns="3">
>      <h:outputText value="#{labels.decimal}:"/>
>      <h:inputText id="decimal" validatorMessage="#{msgs.NaDecimal}" value="#{myBean.decimal}">
>             <f:validateDoubleRange/>
>             <f:validateRequired/>
>             <rich:validator event="blur"/>
>      </h:inputText>
>      <rich:message for="decimal"/>
>      ...
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list