• Ben Dvorachek
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Is it possible to hide the header of the pageBlockTable component? If not, is there a way to add a inputText component to the header? I tried add the inputText and a commandButton to the header and only the commandButton is displayed on the screen. I also tried using the headerClass property to set the header to visibility:hidden but this also did not work.

 

<apex:page controller="MyController" >
<apex:form >
<br/>

<style>
.header { visibility:hidden; }
</style>

<apex:pageblock >

<apex:tabPanel id="tabPanel">
    <apex:tab id="tab1" label="Label 1">
        <apex:pageBlockTable id="table"  value="{!Users}" var="user" width="100%">
            <apex:column >
                <apex:facet name="header">
                    <apex:inputText id="searchText"/><apex:commandButton id="doSearch" value="Search"/>
                </apex:facet>
                <apex:outputText value="{!user.FirstName}"/>&nbsp;<apex:outputText value="{!user.LastName}"/>
            </apex:column>
        </apex:pageBlockTable>
    </apex:tab>
    <apex:tab id="tab2" label="Label 2"></apex:tab>
    <apex:tab id="tab3" label="Label 3"></apex:tab>
</apex:tabPanel>

</apex:pageblock>

</apex:form>  
</apex:page>