0 Replies Latest reply on Sep 21, 2009 8:38 AM by jean.baldessar

    Get a simple html content inside a UIComponent

    jean.baldessar

      How I access an HTML content that is inside a faces component?

      example:

      xhtml:
      <h:panelGroup id="myPanelGroup">
      Some Text
      </h:panelGroup>

      backingBean:

      FacesContext currentInstance = FacesContext.getCurrentInstance();
      UIViewRoot viewRoot = currentInstance.getViewRoot();
      UIComponent component = viewRoot.findComponent("myPanelGroup");
      String pureHtmlContentInside = ??? // component.get???


      Its possible?