[richfaces-issues] [JBoss JIRA] Commented: (RF-7034) Missing selected items in pickList

Benedicto Fernández García (JIRA) jira-events at lists.jboss.org
Thu Dec 3 05:03:29 EST 2009


    [ https://jira.jboss.org/jira/browse/RF-7034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12497944#action_12497944 ] 

Benedicto Fernández García commented on RF-7034:
--------------------------------------------------

I think it's reproducible at 3.3.2.SR1 and 3.3.3.SNAPSHOT. Is it necesary create a new issue? Thanks

> Missing selected items in pickList
> ----------------------------------
>
>                 Key: RF-7034
>                 URL: https://jira.jboss.org/jira/browse/RF-7034
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 3.3.1
>         Environment: JDK 1.5.0_11
> JBoss AS 4.2.3.GA
> Seam 2.1.1.GA
> JSF 1.2_09-b01-BETA1
> JSF-Facelets 1.1.15.B1
> Richfaces 3.3.1.CR2
>            Reporter: Rainer Flicker
>            Assignee: Nick Belaevski
>             Fix For: 3.3.1
>
>
> If a pickList reads selected items from a variable in a backing bean, initial values in the list of selected items are missing
> after a submit. (Works with 3.3.0.GA)
> --- xhtml snippet ---
>   <rich:pickList value="#{userDetailsManager.selRoleNames}"
>     sourceListWidth="200px"  targetListWidth="200px">
>     <f:selectItems value="#{userDetailsManager.roleNames}" />
>   </rich:pickList>
> ----
> --- userDetailsManager snippet ---
>     private List<SelectItem> roleNames = new ArrayList<SelectItem>();
>     private List<String> selRoleNames = new ArrayList<String>();
>     for (Role role : roles) {
>         roleNames.add(new SelectItem(""+role.getId(), role.getName()));
>     }
>     for (Role role : user.getRoles()) {
>         selRoleNames.add("" + role.getId());
>     }
> ----

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list