[richfaces-issues] [JBoss JIRA] Created: (RF-1449) orderingList: selection

Aleksej Yanul (JIRA) jira-events at lists.jboss.org
Wed Nov 28 12:36:46 EST 2007


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

        



More information about the richfaces-issues mailing list