Hi ,
I've implemented row selection functionality using check box in a paginated af:table. User can select a record by selecting the individual checkbox at each row level or selecting all records by selecting 'Select All' checkbox at the header level of the table. I've added a client listener which gets triggered on click of the checkbox and in the javascript function I'm capturing unique value of each row and then invoking a server event and passing all the captured unique values.
I've also attached a server listener which invokes a method in the managed bean. In the method I'm capturing all the unique values (which is passed from java script) in java collection and then storing the collection in the view scope.
In the page I've a 'Submit' button which collect all the values stored in the view scope and perform the necessary business logic. This complete functionality is working fine.
My requirement is to improve the responsiveness of the page.
When the user is selecting the check box, it takes around a second to process the complete .jsf page life cycle.
Is it possible to avoid invoking server side call to store the values in the view scope, instead If I can store the captured value at the client side (which I believe will improve the performance) and then finally when the user hits on Submit button I will capture the values stored at client side and perform the rest of business logic.
Please let me know if this is possible in .jsf page which is developed in ADF using JDev 12c (12.1.3) or please suggest an alternate approach.
Any pointers will be helpful.
Thanks in advance.
Regards,
Gaurav