getting current row values on clicking commandLink?
925715Nov 22 2012 — edited Nov 22 2012Hi Everyone,
i have an ADF read only table with the columns Empno, Ename, Loc, Address, Phone,comm.
Out of all i modified the first column "Empno" to af:commandLink and given Action property (method binding when user clicks on the commandLink)
At source:
<af:commandLink text="#{row.EmpNo}" id="ot12"
inlineStyle="text-decoration:underline;" clientComponent="true"
action="#{backingBeanScope.backing_EmpSearch.LinkMethod}"
partialSubmit="true"/>
The method in the backing bean generated as follows:
public String LinkMethod() {
// Add event code here...
return null;
}
how can i get the current row values on which user has clicked?
How to identify which commandLink(EmpNo column) we selected?
What code should i write in the LinkMethod() to get the current selected row?
Any suggestions will be really useful.
Thanks.