You need to sign in to do that
Don't have an account?
Problem with rendered attribute
<apex:commandButton value="Search" rerender="noresults" status="searchStatus" action="{!query}"/>
<apex:outputPanel id="noresults">
<apex:actionStatus id="searchStatus">
<apex:facet name="start">
<apex:outputText >Working......</apex:outputText>
</apex:facet>
<apex:facet name="stop">
<apex:outputText rendered="{!showTable}">Found</apex:outputText>
<apex:outputText rendered="{!showNoRecFound}">No Records Found</apex:outputText>
</apex:facet>
</apex:actionStatus>
</apex:outputPanel>
getShowTable() and getShowNoRecFound() cannot return true at the same time. Even if getShowTable() returns true, the text "Found" does not get displayed. When getShowNoRecFound() returns true the corresponding text is getting displayed.
I tried moving one of the outputText to a different outputPanel. Then it works perfectly fine. But the status gets messed up!!
Am I missing something?
<apex:facet name="stop">
<apexutputText >{!statusOfRecords}</apexutputText>
</apex:facet>