webtier@glassfish.java.net

Re: Nested Composite Component Doesn't work for table column

From: <webtier_at_javadesktop.org>
Date: Wed, 03 Mar 2010 06:08:37 PST

Had a very similar problem yesterday.

The solution for me was to put the column header and the column data output into two seperate components and use them this way:
<h:dataTable ....>
            <h:column >
                <f:facet name="header">
                    <cc:ColumnHeader ..."/>
                </f:facet>
                <cc:Column .../>
            </h:column>
            <h:column >
                <f:facet name="header">
                    <cc:ColumnHeader ..."/>
                </f:facet>
                <cc:Column .../>
            </h:column>
</h:dataTable>

I could not put header and content into one component. The component then starts with <f:facet/> and this seems to be ignored.
If I put the complete <h:column/> into the component the column is not rendered.
So my outcome was the solution shown above.
[Message sent by forum member 'frank_langelage' (frank_at_lafr.de)]

http://forums.java.net/jive/thread.jspa?messageID=389833