You need to sign in to do that
Don't have an account?

reRender in apex pageblock is not working
I have a apex pageblock which is:
<apex:pageBlock id="kl" rendered="{!isVisible}">
</apex:pageBlock>
<apex:commandButton value="OK" action="{!submitOK}" reRender="kl"/>
In function submitOK........ I made isVisible = false;
But still the pageblock is displaying.. Please helpout in this issue...
<apex:pageBlock id="kl" rendered="{!isVisible}">
</apex:pageBlock>
<apex:commandButton value="OK" action="{!submitOK}" reRender="kl"/>
In function submitOK........ I made isVisible = false;
But still the pageblock is displaying.. Please helpout in this issue...
If you specify rendered attribute on any elements like apex:pageBlock, apex:outputPanel, then reRender is not working properly. You need to manage ur code like:
<apex:outputPanel id='PanelId' >
<apex:pageBlock id="kl" rendered="{!isVisible}">
</apex:pageBlock>
</apex:outputPanel>
<apex:commandButton value="OK" action="{!submitOK}" reRender="PanelId"/>
If this sol is working then please mark best solution.
Thanks
All Answers
try this
If you specify rendered attribute on any elements like apex:pageBlock, apex:outputPanel, then reRender is not working properly. You need to manage ur code like:
<apex:outputPanel id='PanelId' >
<apex:pageBlock id="kl" rendered="{!isVisible}">
</apex:pageBlock>
</apex:outputPanel>
<apex:commandButton value="OK" action="{!submitOK}" reRender="PanelId"/>
If this sol is working then please mark best solution.
Thanks