You need to sign in to do that
Don't have an account?
command button not displaying in inline edit mode for page block table
Hi,
I have a requirement where a pageblock table is being rendered based on the picklist value. And the values in the page block table are inline edited. Now my problem is when I try to do inline edit command buttons SAVE and CANCEL are not displaying . If I remove the pageblock rendering then i can see the command buttons. Please see below code
Visualforce Page:
<apex:actionRegion >
<apex:selectList value="{!selectedList}" size="1">
<apex:selectOptions value="{!listoptions}"/>
<apex:actionSupport event="onchange" reRender="Panel"/>
</apex:selectList>
</apex:actionRegion>
<apex:outputpanel id="Panel">
<apex:pageBlock rendered="{!selectedList == 'All Contacts'}">
<apex:pageBlockButtons >
<apex:commandButton action="{!saveme}" id="saveButton" value="Save" style="display: none;"/>
<apex:commandButton id="cancelButton" value="Cancel" style="display: none;"/>
</apex:pageBlockButtons>
<apex:pageBlockTable value="{!contact}" var="c" rows="50">
<apex:column headerValue="Job Title">
<apex:actionRegion >
<apex:outputField value="{!c.Title}">
<apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton,cancelButton" />
</apex:outputField>
</apex:actionRegion>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:outputpanel>
I am not sure hwre I am missing out. I have gone through many blogs but couldnt find a case for inline editing
Please help me out with this
I guess possible solution would be removing the apex:action region or including the apex:action region in the command buttons tags.
Hey...so you are back with the question ?
I did a lil research inline edit and here is what I got. The documentation really sucks and the code doesnt actually work.
try this(just used the docs to crete a working example)
Hi ,
Thanks for your help. Yeah itseems to be there is bug .. I cannot find any alternate solution to overcome this