I have a set of Radio buttons (h:selectoneradio). A list next to it changes as per the selection of radio btn. But it takes atleast 2 seconds or more to rerender in the list. Is there any solution for this problem? (The data comes from a Constants file in java, not from database)
Here is my code:
<h:selectOneRadio layout="lineDirection" value="#{quickSearch.selectedEntity}"
valueChangeListener="#{quickSearch.quickEntityValue}" switchType="client">
<f:selectItem itemLabel="Sites" itemValue="sites" styleClass="dataValueRadioStyle" />
<f:selectItem itemLabel="Contacts" itemValue="contacts" styleClass="dataValueRadioStyle" />
<a4j:support switchType="client" ajaxSingle="true" limitToList="true" event="onclick" reRender="listId" />
</h:selectOneRadio>
</h:panelGrid>
</td>
<td>
<h:panelGroup >
<h:selectOneMenu id="listId" value="#{quickSearch.srchType}" switchType="client">
<f:selectItems value="#{quickSearch.srchValueList}" />
</h:selectOneMenu>
Thanks