I'm trying to implement editable rows using rich:inplaceInput within a rich:dataTable. The issue here is that the edited value is not reflected in the backing bean.
<rich:column width="200px">
<f:facet name="header">
<h:outputText value="Roles" />
</f:facet>
<rich:inplaceInput id="roleText" value="#{role}" inputWidth="60px" controlsHorizontalPosition="right"
showControls="true" editEvent="none">
<f:facet name="controls">
<h:panelGroup>
<h:commandButton id="saveEdit" value="Save"
action="#{manageRolesBean.editRoleAction}"
image="/images/indicator_accept.gif" alt="Save" />
<h:commandButton id="cancelEdit" value="Cancel"
onclick="#{rich:component('rolesForm:roleText')}.cancel(); return false;"
image="/images/indicator_reject.gif" alt="Cancel" />
</h:panelGroup>
</f:facet>
</rich:inplaceInput>
</rich:column>
Clicking the Save button, gives an empty string in the backing bean. I've tried using a4j:actionParam to read the value from client side, but that doesn't work either:
<a4j:actionparam name="editedValue" value="#{rich:findComponent('roleText').value}" assignTo="#{manageRolesBean.role.name}" />
I'm limited to JSF 1.2 and RichFaces 3.3.X. The solution described here references a newer version. How do I save the edited value in the backing bean?