1 Reply Latest reply on Jul 12, 2010 3:54 PM by Herberson Silva

    rich:modalPanel reRend problem

    Łukasz Rzeszotarski Newbie

      Hi, is it possible to make a4j call when onhide event occurs in case of


      <rich:modalPanel>



      ??


      I made sth like that:




             <rich:modalPanel id="panel" width="530" height="260">
                      <h:form id="magisteriumbeanform">
                              <a4j:queue requestDelay="200" ignoreDupResponses="true" />
                                <a4j:support event="onhide" reRender="data"
                              action="#{czlonekbean.signal}" bypassUpdates="true"
                              ajaxSingle="true" onsubmit="alert('hello');"/>                       
                              <f:facet name="header">
                                      <h:outputText value="Dodawanie członka rodziny" />
                              </f:facet> ..



      and it does not work for me. czlonekbean.signal is not called.


      What is wrong? Maybe bad version of richfaces, but I don't think so.


      Regards,


      Lukasz


        • 1. Re: rich:modalPanel reRend problem
          Herberson Silva Newbie

          Try move <a4j:support /> tag outside <h:form /> doing so the ajax support will be attached to modal panel instead the form.



          Like this:



           <rich:modalPanel id="panel" width="530" height="260">
          
                <a4j:support event="onhide" reRender="data"
                    action="#{czlonekbean.signal}" bypassUpdates="true"
                    ajaxSingle="true" onsubmit="alert('hello');"/>     
                            
                          <h:form id="magisteriumbeanform">
                                  <a4j:queue requestDelay="200" ignoreDupResponses="true" />
                                  <f:facet name="header">
                                          <h:outputText value="Dodawanie członka rodziny" />
                                  </f:facet> ..