function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Column Header Facet in pageBlockList

I'm having trouble getting header facets to display in a pageBlockList

Here's a simplified example of a page:

<apex:page standardController="Contact">
<apex:pageBlockList value="{!Contact}" var="c">

  <apex:facet name="header">ID</apex:facet>
  <apex:outputField value="{!c.Id}"/>
  <apex:facet name="header"><h3>Name</h3></apex:facet>
  <apex:outputField value="{!c.Name}"/>


 The headers do not display.

If I replace the pageBlockList with dataTable then the headers show up fine.

Is this a bug or am I missing something?  (the documentation states that column header facets are supported for pageBlockList )

Note: the headerValue attribute of apex:column works fine,  but I need to insert some HTML tags


I think it depends on Spring 08 or Summer 08 versions. I am not sure which one is which. I asked the same thing :)
That is indeed a bug!  Unfortunately there is no workaround for it.  I will log a bug and get this fixed asap.