[JBoss JIRA] Created: (RF-1449) orderingList: selection
by Aleksej Yanul (JIRA)
orderingList: selection
------------------------
Key: RF-1449
URL: http://jira.jboss.com/jira/browse/RF-1449
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Reporter: Aleksej Yanul
Assigned To: Nick Belaevski
1 select item
2 move item
3 click commandButton reRender
...
n. click commandButton reRender
select deduces various values
//
<h:dataTable id="infoPanelID" value="#{orderingList.info}" var="info" rendered="true">
<h:column>
<h:outputText value="#{info}" />
</h:column>
</h:dataTable>
<a4j:commandButton value="reRender" reRender="infoPanelID"></a4j:commandButton>
<rich:orderingList selection="#{orderingList.selection}" />
/// code
private ArrayList<String> info;
public void setSelection(Collection<Data> selection) {
System.out.println("Selection.out: " + selection);
Iterator<Data> inter = selection.iterator();
Data data = new Data();
info.clear();
while (inter.hasNext()) {
data = inter.next();
info.add(data.getInt0() + " " + data.getStr0() + " " + data.getStr1() + " " + data.getStr2() + " " + data.getStr3());
}
this.selection = selection;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years