Hi All,
I have following problem in calling action on datatable. here are the code:
<h:form> <h:commandButton action="#{accountAction.selectAccount}" value="test" /> <rich:dataTable onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" cellpadding="0" cellspacing="0" columnsWidth="0px, 0px, 0px" border="0" var="_account" value="#{accountList}"> <rich:column> <f:facet name="header"> <h:outputText value="Account #" /> </f:facet> <h:commandButton id="select" action="#{accountAction.selectAccount}" value="#{_account.account.display}" /> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Name" /> </f:facet> <h:outputText value="#{_account.account.name}" /> </rich:column> <rich:column> <f:facet name="header"> <h:outputText value="Type" /> </f:facet> <h:outputText value="#{_account.account.accountType.title}" /> </rich:column> </rich:dataTable> </h:form> public String selectAccount() { log.debug("selectAccount() :: selected account id "); return null; }