1 Reply Latest reply on Apr 12, 2009 12:38 PM by Nick Belaevski

    Binging UI components and AJAX

    Richard Stollar Newbie

      I have in my jsp page a bound rich component
      <rich:panel id="previous" binding='#{myBean.fieldContent}'/>
      and
      <a4j:commandLink value="<< PREV" id="prev" action='#{myBean.previous}' immediate="true" reRender="bodyPanal" />

      Can't get it working, The method fieldContents() is called before the method previous() when the user clicks the link. So even though the the data is changed, the rerender fails. pressing CTRL-F5 re-renders the page fine with the new value in the bound rich:panel object.

        • 1. Re: Binging UI components and AJAX
          Nick Belaevski Master

          Hello,

          "stollar" wrote:
          The method fieldContents() is called before the method previous() when the user clicks the link.

          Yes, setFieldContents() should be called before action method.

          "stollar" wrote:
          So even though the the data is changed, the rerender fails.

          Methods call order should not influence re-rendering. Looks like problem in your application code.