1 Reply Latest reply on Sep 17, 2010 1:39 AM by sivaprasad9394

    How to make <rich:popupPanel> to show up from bean?

    kateryna

      hi!

      I'm trying to actually popup the popupPanel directly from bean, but this code doesn't work:

       

      FacesContext context = FacesContext.getCurrentInstance();
      UIPopupPanel startComp = (UIPopupPanel) context.getViewRoot().findComponent("popup");

      startComp.setShow(true);
      startComp.setRendered(true);

      context.renderResponse();

       

      It produces no errors, but doesn't show the popup. Maybe, I'm missing something. Need help:)

       

      Using version 4.0.0.20100826-M2