[
https://jira.jboss.org/jira/browse/RF-7034?page=com.atlassian.jira.plugin...
]
Mikhail Vitenkov reopened RF-7034:
----------------------------------
Assignee: Nick Belaevski (was: Tsikhon Kuprevich)
Reproducible at 3.3.1.CR3 rf-version.
JSF 1.2_12; Seam 2.1.0.SP1;JBoss 4.2.2 server
Missing selected items in pickList
----------------------------------
Key: RF-7034
URL:
https://jira.jboss.org/jira/browse/RF-7034
Project: RichFaces
Issue Type: Bug
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
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