[richfaces-issues] [JBoss JIRA] (RF-11604) rich:pickList should be able have non-removable/permanent selected items (target list)

Brian Leathem (Updated) (JIRA) jira-events at lists.jboss.org
Tue Nov 1 17:22:45 EDT 2011


     [ https://issues.jboss.org/browse/RF-11604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-11604:
-------------------------------

      Fix Version/s: 4.2.0.Tracking
        Component/s: component-selects
    Forum Reference: http://community.jboss.org/thread/173891  (was: http://community.jboss.org/thread/173891)


Nice suggestion, thanks!

The way to achieve this is to inspect the list of SelectItems from the nested SelectItem sources, and look for the noSelectionOption.  The values of those items should be populated into the target side of the pickList, with no capability to remove.  The value binding of the pickList would still be your model type, not a list of SelectItems.


                
> rich:pickList should be able have non-removable/permanent selected items (target list)
> --------------------------------------------------------------------------------------
>
>                 Key: RF-11604
>                 URL: https://issues.jboss.org/browse/RF-11604
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: component-selects
>            Reporter: Karsten Wutzke
>             Fix For: 4.2.0.Tracking
>
>
> I would be very nice to have an automatic selection of certain items, that is they are always at the right side and can't be removed, even by the remove all button. 
> Maybe pass a list of fixedValues/selectedValues to rich:pickList?
> JSF SelectItem's method setNoSelectionOption(true) has functionality that goes into that direction, however this would mean this feature would only be available when passing List<Selectitem> into the pickList. It would probably be better to support it for any list.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list