Greetings:

Please either confirm and/or correct following proposed solution for Myfaces tiles and save me some time.

Issue: isert a tile definition and attribute in a pure jsf page.

First passed solution: A hybrid of Jsp programming and Jsf. I was able to create a tile page layout in pure jsf except in the portal columns i used old fashion jsp programming to insert a list of portletDefinitions which is extracted from jsf ValueBinding of its managed beans.

The problem with the above approach is that it works well only with html portlet fragments. When a portlet fragment has some jsf elements, the page rendering has conflict of simultaneous rendering between jsf and jsp.

Proposed solution: use <h:dataTable ...> to render the portletList and extract the item portletDefinition as following:

<h:dataTable var="portlet"
value="#{portalTabbedBean.selectedPane.serviceListL}" >
<f:verbatim>
<h:outputText
value="<tiles:insert name=#{portlet.portletDefinition} flush='false' /> " />
</f:verbatim>
</h:dataTable>


Note on the name of tiles:insert element, which i just extracted the definition as a jsp variable to make it work in the first hybrid solution:

   <tiles:insert name="<%=portletDefinition%>" flush="false" />

Thanks

BaTien
DBGROUPS



Reply via email to