The header and footer specified by f:facet in rich:dataTable don't show up as header and footer but repeat at each row in JSP.

Solution Verified - Updated -

Issue

I have the following code specified in a rich:dataTable in a JSP page:

<rich:column>
     <f:facet name="header">My Header Value:</f:facet>
     <h:outputText value="#{myBean.myProperty}" />
</rich:column>

The page is rendered with the following result:

My Header Value: somevalue1
My Header Value: somevalue2

What is expected to be showing up on the page is:

My Header Value:
somevalue1
somevalue2

Environment

  • Richfaces
  • JSP

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.