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
RoyGiladRoyGilad 

Apex:facet header disappear on repeat

Hi Community,
I building a table in VF and I'm using repeat to build it, when doing it I'm getting the values with no problem however the Headers don't apper

My vf is:
<apex:pageBlock >
<apex:pageblocktable id="SLACube" value="{!KPICube}" var="record" rendered="true">

<apex:column >
<apex:facet name="header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</apex:facet>
<apex:outputText value="{!record.UserName}" />
</apex:column>

<apex:repeat value="{!record.amountPerScore}" var="key">
<apex:column >
<apex:facet name="header"># of {!key}</apex:facet>
<apex:outputText value="{!record.amountPerScore[key]}" />
</apex:column>
</apex:repeat>

</apex:pageblocktable>
</apex:pageBlock>

Any idea how to solve it?

Thanks!
Sandy GaliSandy Gali
You are using &nbsp in the facet which would only render only blank space, replace it with a static text and it should work
RoyGiladRoyGilad
Thanks but I'm referring to the other part (the part in apex:repeat )
Sandy GaliSandy Gali
Ideally you would not need apex:repeat as apex:pageblocktable itself is self iterating, but I am assuming you have business logic for which you need to use a repeat tag inside the apex:pageblocktable.
Also can you try to put your repeat tag inside the column tag
Your issue looks similar to the below link 
https://developer.salesforce.com/forums/?id=906F000000097gzIAA

Also screen shot of the output would help

Let me know how you go