facet Problem

Hi,

I get an exception by the code posted below.

facet 'header' already has a child associated.

Is there a problem, if I use facet tag within a dataTable's child object?

<t:dataTable var="test">

<t:columns var="page" value="#{CompanySearchBean.pagingHelper.pagesList}"

headerstyle="font-weight: normal;">

<f:facet name="header">

<h:commandLink action="#{CompanySearchBean.setPage}"

rendered="#{CompanySearchBean.pagingHelper.currentPage != page}">

<f:param id="page" name="page" value="#{page}" />

<h:outputText value="#{page}"/>

</h:commandLink>

<h:outputText value="#{page}"

rendered="#{CompanySearchBean.pagingHelper.currentPage == page}"></h:outputText>

</f:facet>

</t:columns>

</t:dataTable>

[1209 byte] By [CH.Sanixa] at [2007-11-27 1:43:57]
# 1
Does nobody know a solution?
CH.Sanixa at 2007-7-12 1:02:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
The f:facet name="header" accepts only one child component. If you want to add multiple childs to it, group it in a h:panelGroup.
BalusCa at 2007-7-12 1:02:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
It works now :) Thanks a lot!
CH.Sanixa at 2007-7-12 1:02:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...