Forums Register Login

Using selectManyCheckbox

1
+Pie Number of slices to send: Send
I have used datatable tag to display the rows.For every row a check box will appear with its id.Now i want the list of the selected items in the controller.can any body explain this with code.
+Pie Number of slices to send: Send
I think you can use your backing beans's property which should be array. but I am not sure how to do that.

the other way round is to iterate through the request parameters and get the value.

e.g.



where
pr:prForm:prTable - pr is subview id, prForm is Form id and prTable is dataTable id.

chk - is id of check box

cnt - is a counter to keep track of the check box number.

I hope that helps.
+Pie Number of slices to send: Send
use a dataTable to display your checkbox and other controls.

ie.,


thats all you need. you can be assured that when the action method in your backing bean is called, the "someList" will be populated correctly with what the user has selected.
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 6656 times.
Similar Threads
Using selectManyCheckbox.
selectManyCheckbox
SelectManyCheckbox
nowrap with selectManyCheckbox
selectManyCheckbox problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:40:29.