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
kmccollkmccoll 

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:

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

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


</apex:pageBlockList>
</apex:pageBlock>
</apex:page>

 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

Thanks
Kenny

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

Thanks,
Jill