0 Replies Latest reply on Feb 19, 2012 2:08 PM by Yevgen Bushuyev

    refresh modalPanel

    Yevgen Bushuyev Newbie

      Hi,

       

      My problem is that content of a modaPanel is not being refreshed when I want it to be. Here is my page:

       

      <ui:composition>

            ...

           <rich:dataTable value="#{customersList}" var="customerRow" id="customersList">

                <rich:column>

       

                          <a4j:commandLink

                                     id="ShowDetails"

                                    action="#{customerService.details}"

                                     value="Show Details"

                                    oncomplete="Richfaces.showModalPanel('newCustomerView:newCustomerPanel')"

                                    reRender="newCustomerView:newCustomerPanel"

                          />

       

                </rich:column>

           </rich:dataTable>

       

          ....

           <f:subview id="newCustomerView">

                   <rich:modalPanel id="newCustomerPanel" autosized="true">

                         .....

                          <a4j:repeat id="addresses" value="#{selectedCustomer.addresses}" var="address"  binding="#{updateBean.repeater}">

                                ....

                           </a4j:repeat>

                           <a4j:commandButton action="#{customerService.addAddress()}"  value="Add address" rerender="addresses" />

                   </rich:modalPanel>

           </f:subview>

      </ui:composition>

       

      customerService.addAddress() adds new address into selected customer, but it does not appear in the modal panel. If the panel reopend, address appears as expected. I have tried dozed of combinations of divs, a4j:regions and other opsions found by google but no luck. So any help is highly appreciated. 

       

      My env is faces - 1.2_15 (reference impl), richfaces - 3.3.3.Final, Seam - 2.2.2.Final.

       

      Ajax Response from "add address" action:

       

      <body>

                          <meta name="Ajax-Update-Ids" content="" />

                          <span id="ajax-view-state">

                                    <input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id24" autocomplete="off" />

                          </span>

                          <meta id="Ajax-Response" name="Ajax-Response" content="true" />

                          <meta name="Ajax-Update-Ids" content="" />

                          <span id="ajax-view-state">

                                    <input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id24" autocomplete="off" />

                          </span>

                          <meta id="Ajax-Response" name="Ajax-Response" content="true" />

                </body>