2 Replies Latest reply on Dec 1, 2009 8:46 AM by ilya_shaikovsky

    problem processing components with  JSF rendered attribute

      I am trying to set up a region where sertain components are rendered depending on which radio button of a selectOneRadio component is set. However, the proper components are only processed an re-rendered if I click the the command button and submit the entore form. Any ideas on what is going on here and how I can fix it?

       <a4j:region renderRegionOnly="true">
       <h:selectOneRadio id="ne" value="#{quotebean.newClientIndicator}">
       <f:selectItem itemValue="New" itemLabel="New"/>
       <f:selectItem itemValue="Existing" itemLabel="Existing"/>
       <a4j:support event="onclick" reRender="namenew, nameexist, sector" process="namenew, nameexist, sector"/>
       </h:selectOneRadio>
       <h:inputText id="namenew" rendered="#{quotebean.newClientIndicator=='New'}" value="#{quotebean.clientName}"/>
       <h:selectOneListbox id="sector" rendered="#{quotebean.newClientIndicator=='New'}" value="#{quotebean.clientSector}">
       <f:selectItems value="#{quotebean.sectorItemsAvailable}"/>
       </h:selectOneListbox>
       <h:selectOneListbox id="nameexists" rendered="#{quotebean.newClientIndicator=='Existing'}" value="#{quotebean.clientName}">
       <f:selectItems value="#{quotebean.clientItemsAvailable}" />
       </h:selectOneListbox>
       </a4j:region>
       <p/><h:commandButton value="Finish processing client and go to project page" action="projectinfo"/>