I added a render attribute on one of my commit buttons in order to hide the button based on some business logic. I quickly found out that this will kill the ability for your form to commit. The fix is to move the render logic out to a enclosing af:panelGroup. Here is the change:
Before:
<af:commandButton actionListener=”#{bindings.Commit.execute}”
action=”#{backing_TerminalEditMode.flipToViewMode}”
rendered=”#{backing_TerminalEditMode.editMode == \’edit\’
text=”Commit”/>
After:
<af:panelGroup rendered=”#{backing_TerminalEditMode.editMode == \’edit\’}”>
<af:commandButton actionListener=”#{bindings.Commit.execute}”
action=”#{backing_TerminalEditMode.flipToViewMode}”
text=”Commit”/>
<af:commandButton actionListener=”#{bindings.Rollback.execute}”
text=”Rollback” immediate=”true”>
<af:resetActionListener/>
</af:commandButton>
</af:panelGroup>

April 9th, 2010 at 5:44 pm
Hi,
I am facing with the same issue but this solution doesn’t work for me, maybe you can help me a little, look this is my code:
I have added the last button in order to test, but i’m getting the same issue.
Any suggestion is welcome.
Thanks in advance!
April 9th, 2010 at 5:45 pm
The code Again: