0 Replies Latest reply on Sep 21, 2009 8:38 AM by Jean Baldessar

    Get a simple html content inside a UIComponent

    Jean Baldessar Newbie

      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?