3 Replies Latest reply on Jul 16, 2010 10:26 PM by drm5045

    a4j:support simple bypass validation question

    drm5045

      Hi all,

       

      Obviously, I am pretty new to JSF/RichFaces/etc.

       

      I have a checkbox with a4j support:

       

      <h:selectBooleanCheckbox  immediate="true" value="#{LocationBean.panelDisplayed}" id="id" validator="# LocationValidatorBean.validate}">

           <a4j:support event="onclick" ajaxSingle = "true" reRender="panelGroup"></a4j:support>
      </h:selectBooleanCheckbox>

       

      and if they select the checkbox, I want to show the corresponding panel:

       

      <a4j:outputPanel id="panelGroup">
           <h:panelGrid id="panel1" rendered = "#{LocationBean.panelDisplayed}">
              <h5><u>PersonalProperty</u></h5>
           </h:panelGrid>

      </a4j:outputPanel>

       

      However, the validator is called everytime I click the textbox. I don't want validation to occur at this time. If I set immediate to true on the a4j support, my panel group never gets displayed... Any ideas are greatly appreciated :-)