4 Replies Latest reply on Jan 23, 2011 4:34 AM by kapil29

    <a4j:region> reRender Problem

    kapil29

      Hi

       

      I am facing problem while reRendering the region from <a4j:commadButton> component.

       

      I have four separate .xhtml pages. and one main.xhtml page the four pages are included in <a4:region>  in main page as below

       

                  <a4j:region id="creative_section">

                      <ui:include src="creative.xhtml"/>

                  </a4j:region>

       

                  <a4j:region id="questionnaire_section">

                      <ui:include src="questionnaire.xhtml"/>

                  </a4j:region>

       

                  <a4j:region id="registration_section">

                      <ui:include src="registration.xhtml"/>

                  </a4j:region>

       

                  <a4j:region id="endscreen_section">

                      <ui:include src="endScreen.xhtml"/>

                  </a4j:region>

       

      The <a4j:commadButton> is in a different page. Now I want to reRender all the region when clicking on the button.

       

      <a4j:commandButton value="Save Changes" action="#{projectController.createAction}"

      reRender="creative_section,questionnaire_section,registration_section,endscreen_section" immediate="true"/>&#160;

       

      I don't know why the above code doesn't work.

        • 1. <a4j:region> reRender Problem
          ilya40umov

          Try to wrap all the regions to h:panelGroup and reRender it. I think that a4j:region can't be a reRender-able wrapper.

          • 2. <a4j:region> reRender Problem
            kapil29

            Thanks IIya,

             

            I have wrapped all the region to <h:panelGroup> but the problem still remains same. I am not able to reRender the region once click on the <a4j:commandButton />

             

            Kindly help me..

            • 3. <a4j:region> reRender Problem
              ilya40umov

              1) Could you post the whole page, please?

              2) I guess you problem can be in forms. Do you have only one form or a few forms on the page? Because if a4j:commadButton in a different form you should use "formID:panelGroupId" instead of "panelGroupId" in reRender attribute.

              1 of 1 people found this helpful
              • 4. <a4j:region> reRender Problem
                kapil29

                Thanks IIya,

                 

                I have resolve the problem by using following attributes in <a4j:region>

                 

                <a4j:region renderRegionOnly="false" immediate="true">

                               <h:panelGroup id="creative_section">

                                   <ui:include src="creative.xhtml"/>

                               </h:panelGroup>

                </a4j:region>

                 

                Thanks once again for you help.