1 Reply Latest reply on Jun 28, 2013 4:38 AM by michpetrov

    Richfaces popup panel open without an ID

    anu0412

      Hi,

       

      Can anyone let me know if it is possible to open and close the Richfaces popup panel without using an id.

       

      Thanks in Advance

        • 1. Re: Richfaces popup panel open without an ID
          michpetrov

          Hi,

           

          it is possible, but why wouldn't use an id? You still need to identify the popupPanel by something, especially if you have more of them.

           

          You can use jQuery's selectors, but if you have multiple popups on one page you'll get in trouble:

          <rich:popupPanel header="Panel">
              <!-- content -->
          </rich:popupPanel>
                      
          <a4j:commandButton execute="@this">
              <rich:componentControl operation="show" selector="div:has(.rf-pp-cntr)" event="click"/>
          </a4j:commandButton>