+ Start a Discussion

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


Any idea how to solve it?

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
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 

Also screen shot of the output would help

Let me know how you go