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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content