2 Replies Latest reply on Sep 3, 2008 10:16 PM by Jay Haley

    binding fires before a4j:suport updated bean

    Jay Haley Newbie

      I want my panelBar to be built dynamically depending upon the value of the selectOneMenu. If I understand correctly, my panelBar's binding #{surveyCtrl.panelBar} is called before #{surveyCtrl.articleBasedOn} is updated via the a4j:support. How do I work around this? This is causing me a problem since a value in my binding is dependant upon the selectOnemenu value.

      <t:panelGrid columns="2">
       <h:outputLabel for="articleBasedOn" value="#{labels['l.pages.survey.survey.articlesBasedOn']}"/>
       <h:selectOneMenu id="articleBasedOn" value="#{surveyCtrl.articleBasedOn}" >
       <f:selectItems value="#{surveyCtrl.articleBasedOnList}"/>
       <a4j:support ajaxSingle="true" event="onchange" reRender="surveyFrm:availableArticlesPanelBar"></a4j:support>
      <rich:panelBar id="availableArticlesPanelBar" height="100%" width="200" binding="#{surveyCtrl.panelBar}" />