0 Replies Latest reply on Sep 27, 2011 7:39 AM by marsim86

    rich:popupPanel doesn't work correctly with rich:tabPanel, why?

    marsim86

      Hi,

       

      I have got a page with diferents rich:popups, but now I need to put diferent tabs, and when I put the tabs the popups don't work properly.

       

      My main popup panel:

       

      <rich:popupPanel id="mainPopup" modal="true"                              moveable="false" autosized="true" resizeable="false" domElementAttachment="form">

      ...

           <a4j:commandButton oncomplete="#{rich:component('askPopup')}.show();" value="Delete"/>

           <a4j:commandButton value="Back" action="#{adminRE.cancelarFila}" execute="@none"

                                                        onclick="#{rich:component('mainPopup')}.hide();" />

      </rich:popupPanel>

       

      And the confirm panel

       

      <rich:popupPanel id="askPopup">

      ...

           <a4j:commandButton oncomplete="#{rich:component('askPopup')}.hide()" value="Cancel"/>

           <a4j:commandButton oncomplete="#{rich:component('askPopup')}.hide();#{rich:component('mainPopup')}.hide();"

                               value="Cancel" action="#{adminRE.saveFila}"/>

       

      </rich:popupPanel>

       

      And I put it into a tabPanel first, and next out of the tabPanel, but neither work properly, the popups never are closed, show() function works fine, but hide() does nothing.  And the rest of code (on the bean) is executed fine.

       

      Any idea?

       

      Thanks in advance,

       

      Marcos Simón