1 Reply Latest reply on Nov 8, 2012 5:28 AM by rhanus

    CSV: default message not validatorMessage is displayed

    rhanus

      Hi,

       

      I walked through JIRA and find a few similar issues already fixed but this is not that case

       

      facelet snippet:

      <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"/>

           ...

       

      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

      any hint ?

       

      thanks,

      Radim

        • 1. Re: CSV: default message not validatorMessage is displayed
          rhanus

          thanks to Luca Nardelli:

           

          <h:panelGrid columns="3">

               <h:outputText value="#{labels.decimal}:"/>

               <h:inputText id="decimal" validatorMessage="#{msgs.NaDecimal}" converterMessage="#{msgs.NaDecimal}" value="#{myBean.decimal}">

                      <f:validateDoubleRange/>

                      <f:validateRequired/>

                      <rich:validator event="blur"/>

               </h:inputText>

               <rich:message for="decimal"/>

               ...