Hi,
I have following code action firing in JSF 1.2 Richfaces 3.3, but the same is not working in JSF2 Richfaces 4.3.2. Please help with your valuable suggestions.
I have the xhtml code as below:
<a4j:region id="operationPanel" >
<a4j:commandButton id="Cancel" value="Cancel"
action="#{someOperation.cancel(cancelCommand.init(clientBean.clientId))}"
oncomplete="openModalWindow('modalPanel')"
render="modalPanel" />
</a4j:region>
And the Backend Bean("someOperation") code as below :
@Begin(join = true, flushMode = FlushModeType.MANUAL)
public String cancel(CancelConfirmCommand cancelCommand) {
this.command = cancelCommand;
this.id = cancelCommand.getId();
this.flag = cancelCommand.getFlag();
this.setCommonOperationMessage(
cancelCommand.getTitle(),
cancelCommand.getMessage());
return "";
}