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

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Thu Nov 29 21:43:50 EST 2007


     [ http://jira.jboss.com/jira/browse/RF-1449?page=all ]

Nick Belaevski resolved RF-1449.
--------------------------------

    Resolution: Done

> 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
>             Fix For: 3.1.3
>
>
> 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