Paul, since this is basic JSF knowledge, I wouldn't bother with the wiki.

Maybe you could provide an improved error message instead since you
found this one confusing?

java.lang.IllegalStateException: facet 'footer' already has a child associated.

Open a jira issue, and attach a patch for a better error message.

On 8/24/06, Paul Spencer <[EMAIL PROTECTED]> wrote:
That works!

I will add it to the wiki.

Paul Spencer

Mike Kienenberger wrote:
> All facets are limited to one child.
> Use h:panelGroup as the child and add the rest as children of h:panelGroup.
>
>
> On 8/24/06, Paul Spencer <[EMAIL PROTECTED]> wrote:
>> I am using the footer facet in a data table column  The facet had 2
>> <h:outputText/> children.
>>
>> <t:dataTable...>
>>    <t:column...>
>>      <f:facet name="header">
>>       ...
>>      </f:facet>
>>      <f:facet name="footer">
>>        <h:outputText ...>
>>          <f:convertNumber ....>
>>        </h:outputText>
>>        <h:outputText... />
>>      </f:facet>
>>    </t:column>
>> </t:dataTable>
>>
>> This cause the following stack trace:
>>
>> ERROR - Servlet.service() for servlet jsp threw exception
>> java.lang.IllegalStateException: facet 'footer' already has a child
>> associated. current associated component id: _idJsp4:_idJsp12 class:
>> javax.faces.component.html.HtmlOutputText
>>         at
>> javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:560)
>>         at
>> javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:312)
>>
>> When I remove one of the children, the page renders correctly.
>>
>>
>> Is the limitation of 1 child in the footer facet from the JSR?
>>
>> What is the best way to include 2+ children.  In my case I use
>> converters in the <h:outputText/>, so they
>> cannot be combined.
>>
>> Paul Spencer
>>
>



Reply via email to