Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getting current row values on clicking commandLink?

925715Nov 22 2012 — edited Nov 22 2012
Hi 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.
This post has been answered by user404 on Nov 22 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2012
Added on Nov 22 2012
1 comment
258 views