My page contians a slider and a drop down box, both displaying the same information. I am using a4j support command to rerender the UI on onchange (working) but I also rerender the counterpart component - which never seems to update:
<a4j:outputPanel style="float:right" id="viewList"> <h:selectOneMenu value="#{bean.idx}" > <f:selectItems value="#{bean.beanItems}" /> <a4j:support event="onchange" reRender="redrawTabs, views, viewIter" ajaxSingle="true"/> </h:selectOneMenu> </a4j:outputPanel> <a4j:outputPanel id="viewIter" style="width:80%; margin-left: auto; margin-right: auto;" layout="block"> <rich:inputNumberSlider value="#{bean.idx}" minValue="-1" maxValue="#{bean.maxIdx}" enableManualInput="false" showInput="false" showToolTip="false" showBoundaryValues="false" width="100%"> <a4j:support event="onchange" reRender="redrawTabs, views, viewList" ajaxSingle="true"/> </rich:inputNumberSlider> </a4j:outputPanel>
I actually tried adding a second slider to the page, and keeping that in synch (btw the two sliders) and that doesn't seem to work either.
I wonder if I will have to use javascript to manipulate them (on the oncomplete event).