Due to a request of a PrimeFaces PRO user, we have added a couple of handy features to selectCheckboxMenu component;
- Global toggle check-uncheck all checkbox
- Filtering
- Closer
See PrimeFaces Labs for a live demo.
Due to a request of a PrimeFaces PRO user, we have added a couple of handy features to selectCheckboxMenu component;
See PrimeFaces Labs for a live demo.
8 thoughts on “SelectCheckboxMenu Enhancements”
Looks good.
I don’t know the request, but I would expect the select-all button to toggle the visible entries only if a filter is used.
Best regards
Definitely the biggest issue.
Hi Cagatay. Congrats. It almost fulfills our requirements, but I think I can’t use this implementation. Selected items are not seen in the box. Users want to see what they selected (or default, pre-selected values) in forms. With the current implementation they have to click on dropdown button to see selected / pre-selected items. I would suggets to implement this behavior as in this great jQuery plugin: http://www.erichynds.com/examples/jquery-ui-multiselect-widget/demos/#selectedlist or much better as you did this for multiply autocomplete (with delete icon): http://www.primefaces.org/showcase-labs/ui/autoCompleteMultiple.jsf Multiply autocomplete shows all selected items. Should I open an issue?
hi Cagatay, cool feature. could you add columns display as apache tomahawk selectmanycheckbox. Also it would be nice if the people coould see theirs selections.
@Oleg, Cagatay: Or if we have a “listener”, we could easily nest this component into panelGrid, and as the user select/deselect the component, redisplay the selected list on the right side of the SelectCheckBoxMenu
What I wanted to say – “Movies” is a label and not the current selection of SelectCheckboxMenu
. This is a little bit different what other inputs and selects display. Look & feeld of multiply autocomplete is very good in my opinion and could be applied here as well. If nothing selected –> box is empty. If something was selected, show (mutiply) selection like in autocomplete. And label is label, it should be separated to use this component like other ones in forms. To make thing flexibel – configuration for “show label in box instead of selection” could be possible as well.
Agreed, there is room for improvement.
hi Cagatay, Is this component has the option to select only one item? because the filter is excellent when the list has a lot of elements. But I need to select only one item.