5 Replies Latest reply on Oct 2, 2008 5:24 AM by janson12

    Dynamic reRender

    jobb

      Hi,
      Is there any chance to get reRender where we can use EL expressions, like reRender="#{bean.method}", where method returns a String or null (for no reRender) ?
      In some situations, depends on code on server side, reRender is not necessary.
      It would be nice to have possibility to parameterize what should be rerendet depends on program logic in bean.

        • 1. Re: Dynamic reRender
          ahoehma

          I guess this is already possible.

          • 2. Re: Dynamic reRender
            jobb

            I am afraid not

            • 3. Re: Dynamic reRender
              ilya_shaikovsky

              This is possbile from the very beggining. Just bind reRender to the List of ids or just simple string which contains comma-separated ids.

              • 4. Re: Dynamic reRender
                jobb

                Sorry, I was wrong. I've tested returning String, but I should return String[]
                Thank you

                • 5. Re: Dynamic reRender

                  if you're intention is to create a wizard-like behaviour you could give this one a shot:

                  <a4j:outputPanel id="ajaxArea">
                  <a4j:include viewId="#{Wizard.currentView}" />
                  </a4j:outputPanel>
                  ...
                  <a4j:commandLink value="#{msg.button_back}" action="#{Bean.someAction}"reRender="ajaxArea" >
                  <a4j:actionparam name="nextView" value="somepage.jsp" assignTo="#{Wizard.currentView}" />
                  </a4j:commandLink>
                  

                  ...assumed that there is some wizard bean that handles the pages...