I'm trying to use onclick and VF actionFunction to show a portion of a page.pageblocksection is not rendering.showdetail is false on vf page
I've set up an onclick like this:
<apex:commandLink value="Previous"
action="{!setController.previous}"
onclick="hideDetail();"
rendered="{!setController.hasPrevious}"/>
<apex:actionFunction name="hideDetail"
action="{!hideDetail}"
rerender="detailBlock"/>
And I've set up a method like this in the controller:
//Called by actionFunction for Javascript onclick.
public PageReference hideDetail() {
showDetail = true;
returnnull;
}
And the detail pageBlock is like this:
<apex:pageBlockid="detailBlock">
<apex:pageBlockSection title="Position Detail"
collapsible="false"
rendered="{!showDetail}">
return false;
to the onclick:onclick="hideDetail(); return false;"