I'm writing a custom JSF tag and need to add the Include UI component to the page during the rendering of my custom tag.
I create an instance of the Include class, set the id, viewId and layout properties. The instance is added to the child list of my custom tag.
Include South = new Include();
South.setViewId("mypage.jsp");
South.setLayout("block");
South.setId("South");
myTag.getChildren().add(myTag.getChildCount(), South);
The rendering of the Include class is only producing the following
<div id="South"> </div>