If your application has table and if user is clicking some of the action component(Button, Link) in the table, How will you get the user clicked row in the back-end code.
See one of the easiest solution below.
Download the source code below.
Download
See one of the easiest solution below.
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iteratorBinding = (DCIteratorBinding)bindings.get("sampleVO1Iterator");
//_logger.info("iteratorBinding===="+iteratorBinding);
if (iteratorBinding != null) {
sampleVORowImpl currentRow = (sampleVORowImpl)iteratorBinding.getCurrentRow(); // this is the user clicked row.
In the attached source code, there is page1.JSF page, run it and click on the manager id(id click here) and check in the console. In the console whichever manager id you have clicked it will be printed.Download the source code below.
Download