1 Reply Latest reply on Oct 31, 2009 9:27 AM by Nick Belaevski

    Skip JSF Validation for f:validator, ...

    Tobias Keller Newbie


      I found the following concept to skip JSF validation for inputText field with the required attribute:


      <h:commandButton value="Copy">
      <f:param name="requireValidationGrp1" value="1"></f:param>
      <a4j:commandButton value="Save" reRender="region1">
      <a4j:actionparam name="requireValidationGrp1" value="1">
      <h:inputText id="input2" required="#{param['requireValidationGrp1'] == '1'}" requiredMessage="Input2 required"></h:inputText>

      A similar thread: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=125128

      In my page I like to skip the inputText fields with validators, etc. in an datatable as below:

       <h:inputText id="input2" required="#{param['requireValidationGrp1'] == '1'}" requiredMessage="Input2 required">
       <f:convertNumber />
       <f:validator />

      I do not know how to adopt the example. Working with a4j:region or ajaxSingle attribute?

      What solution do you have for this problem?

      Best regards