Forums Register Login

JSF - Passing value from a SelectBooleanCheckBox to a command button

+Pie Number of slices to send: Send
Hi Everbody,

I have a check box in one of the column of a data table (The datatable contains many records). I would like to find out, which check box has been clicked by the user.Here event has to take place when we select the check box.The method what is backing bean is not going to call.
There is a command button below the datatable. (The user will first click on the check box and then click on the command button). In the command button's method, I would like to know how many checkboxes has been clicked.
Any help is appreciated.

Thanks in Advance
Bhagya
+Pie Number of slices to send: Send
The check box should have its value bound to a boolean backing bean property. In fact, it has to be for JSF to use it.

When you click the command button and your command action method is invoked, the properties bound to the check boxes will reflect which boxes were/weren't checked at the time you clicked the command button.
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2421 times.
Similar Threads
Dynamic positioning of image in JSP
JSF navigation/back button problem
JSF - Passing value from a SelectOneCheckBox to a command button
pop up box - JDialog??
IBM JSF and hx:commandExRowAction issue
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:42:49.