1 Reply Latest reply on Sep 2, 2008 5:10 PM by Jay Haley

    reRender does not invoke targets binding

    Jay Haley Newbie

      I am successfully building a set of panelBarItems by using a binding on my panelBar. However, I am unable to rebuild this panelBar by using an a4j:support reRender call. I put a System.out.printlin in my binding method (getPanelBar), but it never gets hit. I do see my panelBar flash, so I think the reRender is hooked up. I just appears that the binding is not working

      <h:selectOneMenu value="#{surveyCtrl.articleBasedOn}" >
       <f:selectItems value="#{surveyCtrl.articleBasedOnList}"/>
       <a4j:support ajaxSingle="true" event="onchange" reRender="availableArticlesPanelBar"></a4j:support>
      <rich:panelBar id="availableArticlesPanelBar" height="100%" width="200" binding="#{surveyCtrl.panelBar}" />

        • 1. Re: reRender does not invoke targets binding
          Jay Haley Newbie

          I solved this by changing my binding. The a4j:support fires the setPanel bar, I assumed it was firing the getPanelBar. I've pasted my get below, and my set now builds panelBar's children

          public HtmlPanelBar getPanelBar() {
           if (panelBar == null) {
           FacesContext context = FacesContext.getCurrentInstance();
           Application application = context.getApplication();
           panelBar = (HtmlPanelBar) application.createComponent(HtmlPanelBar.COMPONENT_TYPE);
           return panelBar;