2 Replies Latest reply on Apr 24, 2007 10:14 AM by jgreene

    using limitToList and reRender attributes

    jgreene

      Hello -
      Here's a basic question about ajax4jsf. In reading the documentation about using the "limitToList" and "reRender" attributes, I can't quite figure out why both of these would be needed. If you use the <a4j:support> tag, and only want 1, 2, or a few of the form items to rerender, aren't you just supposed to include the ids of these components in the rerender list for it to work the way you want? It seems like using the limitToList="true" is redundant. If you wanted everything to be updated (rerendered), couldn't you just leave out the reRender attribute? And wouldn't that be the same as limitToList="false"?

      Now I realize this is a newbie question, so there's probably a very good explanation. Thanks ahead of time for any feedback.

      - Joe

        • 1. Re: using limitToList and reRender attributes

          Ajax re-renders on ajax response:
          1. areas pointed with reRender attribute
          2. areas defined with a4j:outputPanel ajaxRendered="true"

          limitToList="true" directs to have only #1 and ignore #2

          • 2. Re: using limitToList and reRender attributes
            jgreene

            Hi Sergey -
            Thanks for the response. I think I understand somewhat, but reading through the docs does not completely clarify it all for me. The docs say that you can give the <a4j:outputPanel> an id that can be included in the "reRender" list. When would it be better to use the "ajaxRendered" attribute instead of just including the output panel's id in the reRender list?

            - Joe