[richfaces-issues] [JBoss JIRA] Created: (RF-3580) Ordering list keeps old values.

Sergey Halipov (JIRA) jira-events at lists.jboss.org
Wed May 28 12:18:49 EDT 2008


Ordering list keeps old values.
-------------------------------

                 Key: RF-3580
                 URL: http://jira.jboss.com/jira/browse/RF-3580
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.1
            Reporter: Sergey Halipov


1. Create some ordering list component and bind its selection to REQUEST bean.
2. Select some rows, submit selection with ajax commandButton. Selection will be shown in corresponding outputText.
3. Refresh the page, selection in outputText is empty as expected.
4. Press commandButton again without any selection. OLD selection from step 2 is shown.

XHTML code:
<rich:orderingList id="orderingList" 
....................
                                selection="#{orderingListBean.selection}"  >
..................
			<h:column>
				<a4j:commandButton value="Ajax Action" reRender="results" />
			</h:column>
.........................
		</rich:orderingList>

<h:panelGroup id="results" >
			<h:outputText value="#{orderingListBean.selectionString}" id="selection" />
		</h:panelGroup>

Java code:
public Collection<Item> getSelection() {
		return selection;
	}
	public void setSelection(Collection<Item> selection) {
		this.selection = selection;
	}

public String getSelectionString() {
		StringBuffer buff = new StringBuffer();
		for (Iterator<Item> it = selection.iterator(); it.hasNext();) {
			Item item = it.next();
			buff.append(item.getName());
			if (it.hasNext()) {
				buff.append(',');
			}
		}
		return buff.toString();
	}

-- 
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