You need to sign in to do that
Don't have an account?
Command Button in Dynamically rendered outputPanel - BUG?
Hey guys,
Ran into an issue which looks like a bug to me.
So I have some controls for a VF page at the top inside an output panel. The output panel is rendered based on a certain value in the custom controller I am using. Now when i try and use the command buttons inside the panel, the page just refreshes and the action method is not hit at all.
<apex:outputPanel rendered="{!statusCode == 200}">
<table style="width:100%;">
<tr>
<td style="vertical-align: middle;">
<apex:commandButton action="{!RedirectToReports}" title="PDF" value="PDF" ></apex:commandButton>
</td>
</tr>
</table>
</apex:outputPanel>
If I remove [ rendered="{!statusCode == 200}" ] then the page works correctly and the buttons do what they are meant to.
Is this by design or have i stumbled upon a really basic bug?
Cheers
I am going to move this into the Visual Force development discussion as that is probably more appropriate