4 Replies Latest reply on Sep 5, 2008 3:01 PM by Sébastien Doncker

    Working or replacing UIInclude (or Include) in custom compon

    Sébastien Doncker Newbie

      Hi all,

      I try to use an UIInclude or an Include in a custom component. The component is rendered but not the xhtml attached with the viewId attribute...

      Here is my code to insert the Include :

      Include include = new Include();
      include.setId("test_include");
      include.setViewId("test.xhtml");
      parent.getChildren().add(include);
      include.setParent(parent);
      


      The
      <span id="test_include"></span>
      is well created but not its content.

      I have try to do same thing in xhtml :
      <a4j:include id="test_include" viewId="text.xhtml"/>
      

      And this work perfectly.

      Does anybody know how to work with Include in custom component or know another way to include a xhtml page into a component ?

      Thanks in advance,
      seb