« Return to Thread: custom facelets tag: render children

Re: custom facelets tag: render children

by smilysep :: Rate this Message:

Reply to Author | View in Thread

As Example it should be something like this file "customTable":

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:composition>
                <t:dataTable id="${listId}" value="${list}" var="link"
                        binding="${listBinding}" columnClasses="class1,class2">

                        <!--HOW TO JUST PLACE TAG BODY CONTENT HERE? -->

                        <f:facet name="footer">
                                        <t:dataScroller for="${listId}" styleClass="cumtableFooter"
                                                fastStep="10" pageCountVar="pageCount" pageIndexVar="pageIndex"
                                                paginator="true" paginatorMaxPages="9"
                                                paginatorActiveColumnStyle="font-weight:bold;">
                                                <f:facet name="first">
                                                        <t:graphicImage url="images/arrow-first.gif" border="1" />
                                                </f:facet>
                                                <f:facet name="last">
                                                        <t:graphicImage url="images/arrow-last.gif" border="1" />
                                                </f:facet>
                                                <f:facet name="previous">
                                                        <t:graphicImage url="images/arrow-previous.gif" border="1" />
                                                </f:facet>
                                                <f:facet name="next">
                                                        <t:graphicImage url="images/arrow-next.gif" border="1" />
                                                </f:facet>
                                                <f:facet name="fastforward">
                                                        <t:graphicImage url="images/arrow-ff.gif" border="1" />
                                                </f:facet>
                                                <f:facet name="fastrewind">
                                                        <t:graphicImage url="images/arrow-fr.gif" border="1" />
                                                </f:facet>
                                        </t:dataScroller>
                        </f:facet>
                </t:dataTable>
</ui:composition>
</html>

 « Return to Thread: custom facelets tag: render children