Select all values from selectitem

Hi, i’m trying to select all items to a selectitem, but not have any method for this, when the user pick the value"todos" all items will be marked.

other way is make manualy the selection with the method “setvlues” but i can find any method to get all no selected values from the selectitem.

please help me if you can.

tanks.

The exact implementation may vary depending on your use case but basically you can look at the current selection via ‘getValues()’, modify it via ‘setValues()’.
If your item doesn’t have an optionDataSource, the underlying set of available options is of course available in the valueMap for the item.
You can react to user interaction via the changed handler or similar.