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

    Richfaces popup panel open without an ID

    Anu NPN Newbie



      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
          Michal Petrov Master



          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 -->
          <a4j:commandButton execute="@this">
              <rich:componentControl operation="show" selector="div:has(.rf-pp-cntr)" event="click"/>