I would like to implement, but i do not know the way, since if i use the java script, how to call the JSF component.
So, if you have implemented this, please let me know and if possible please send me sample code of jsf file.
Thanks in advance.
Joined: May 30, 2002
Do it on server side. If the user clicks "Select all", go to backing bean's listener method and set the boolean property mapped to your checkbox to "true" for all objects in collection. Similar approach will work for uncheck option too.
Originally posted by Varun Khanna: Do it on server side. If the user clicks "Select all", go to backing bean's listener method and set the boolean property mapped to your checkbox to "true" for all objects in collection. Similar approach will work for uncheck option too.
I'd second that for a couple of reasons.
Page stay much cleaner if you do all the work in the backing bean.
This is not JSP/Servlet programming. This is JSF. A component oriented framework. Think components, think actions, think GUI's. Stop thinking HTML.
I�m trying the JSF approach, but the problem is that I use some of the check box components appear on other pages. So after doing a select all on one page, I go to another page, those same boxes would render as checked. They would need to be reset somehow, but I'm not sure how I would approach it. Any suggestions? Thanks!
Every One I am New in JSF,,
I have to select all checkboxes on click of a button,,,,,,,,,,,,,,,
Please can you tell me , How Can handle this with actionListner ???
As Mr. Varun Khanna Suggest...
Joined: Aug 04, 2010
I have done select all checkboxes on click of a button in jsf on server side.
But o server it taking 5-6 sec...
it is taking too much time ,
i want to ask that,
What is the good way to this work.
1 . Do In server Side
2. Do in client Side..........
subject: Select All and Clear All implementation in JSF