2 Replies Latest reply on Dec 15, 2008 12:35 PM by aditya.bora

    Convert richfaces string to HTML component

      Hello everybody

      I am developing an application using Seam framework, where i need to create HTML as well as richfaces components dynamically and that too from a string. So can anyone tell me the way to convert rich  string to HTML component from server side? I was able to create HTML components, but failed for richfaces components.

      This is how i've got success for HTML components

      String myHtmlString = "<table > ... </table>";
      HtmlOutputText text = new HtmlOutputText();
      text.setEscape(false);
      text.setValue(myHtmlString);

      String myRichString = "<rich:panel> ... </rich:panel>";
      ??????

      Waiting for help...

      Thankx in advance
      Aditya(Eddie)
        • 1. Re: Convert richfaces string to HTML component
          amitev

          This isn't possible.

          • 2. Re: Convert richfaces string to HTML component

            Thankx Adrian,


            This really shocked me. Actually i was looking for an alternate of  
            ASP.NET Page.ParseControl(). I was using an XML,XSL and an XHTML file for displaying my output and XSL file wud transform the XML to XHTML and the transformed string output will be displayed in the form of HtmlOutputText. This step was taken as i need to inject some more properties into the XML before hand over to the XSL file.


            Anyway, change of plan - i am going to use(call) XML/XSL directly in the xhtml page, so can anyone please tell me how to use xsl file in xhtml page?


            Thankx in advance
            Aditya(Eddie)