1 Reply Latest reply on Feb 2, 2011 6:55 PM by zeppelinux

    (M5) rich:popupPanel + toolbar + tabPanel = probably a Bug

    zeppelinux

      Hi,

       

      Popup is not working for me in certain situation - when it's show() invoked from toolbar link and this popup has tabPanel inside, i.e. if i remove the tabPanel it's showing up. 

       

      Here is the complete page to reproduce the problem, it has 2 links - one is working, another is not.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE html

              PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

       

      <html xmlns="http://www.w3.org/1999/xhtml"

            xmlns:h="http://java.sun.com/jsf/html"

            xmlns:f="http://java.sun.com/jsf/core"

            xmlns:ui="http://java.sun.com/jsf/facelets"

            xmlns:a4j="http://richfaces.org/a4j"

            xmlns:rich="http://richfaces.org/rich">

       

       

          <h:head>

          </h:head>

       

          <h:body>

       

              <h:form>

                  <a4j:commandLink value="Show PopUp" action="#{popUpTestBean.doNothing}" execute="@this"

                                oncomplete="#{rich:component('popUp')}.show();return false;"/>

              </h:form>

       

              <h:form>

                  <rich:toolbar>

       

                      <a4j:commandLink value="Show PopUp from Toolbar" execute="@this"

                                       action="#{popUpTestBean.doNothing}" render="popUp"

                                       oncomplete="#{rich:component('popUp')}.show();return false;"/>

                  </rich:toolbar>

              </h:form>

       

              <rich:popupPanel id="popUp" >

       

                  <f:facet name="controls">

                      <h:outputLink value="#" onclick="#{rich:component('popUp')}.hide(); return false;">X</h:outputLink>

                  </f:facet>

       

                  <h:form>

       

                      <rich:tabPanel switchType="ajax">

       

                          <rich:tab header="Tab 1">

                          </rich:tab>

       

                          <rich:tab header="Tab 2">

                          </rich:tab>

       

                      </rich:tabPanel>

       

                  </h:form>

       

              </rich:popupPanel>

       

          </h:body>

      </html>

       

      Does it belongs to JIRA?