0 Replies Latest reply on Sep 4, 2009 9:39 AM by fabio di biase

    validate 2 inputText in the same s:decorate

    fabio di biase Newbie

      Hi to everyone, i've this code:

      <s:decorate id="dal_field_edit" template="../layout/edit.xhtml" rendered="#{not (_timbratura_selezionata.idTimbratura > 0)}">
      <ui:define name="label">Ora operazione:</ui:define>
      <h:outputText readonly="true" value="#{_timbratura_selezionata.ora}" >
      <f:convertDateTime pattern="dd/MM/yyyy" timeZone="GMT+2"/>
      </h:outputText>
      <h:inputText value="#{_timbratura_selezionata.ora.hours}" maxlength="2" size="2">
      <f:validateLongRange minimum="0" maximum="23" />
      </h:inputText>
      <h:outputLabel value=" : "/>
      <h:inputText value="#{_timbratura_selezionata.ora.minutes}" maxlength="2" size="2" >
      <f:validateLongRange minimum="0" maximum="59" />
      </h:inputText>
      </s:decorate>

      so if i put 88 (or other value off range) the form show the icon of error but not the message but if i wrote the value in the first inputText the message are displayed correctly, someone know because i've this problem?

      thanks, Fabio.