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

Sergey Halipov (JIRA) jira-events at lists.jboss.org
Thu May 29 07:54:46 EDT 2008


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

Sergey Halipov reopened RF-3580:
--------------------------------

      Assignee: Nick Belaevski  (was: Tsikhon Kuprevich)
             
It is reproducible with Firefox only. I've tested with firefox 3 beta 5 for windows and 2.0.0.14 for linux.
I've reproduced it with https://svn.jboss.org/repos/richfaces/trunk/samples/orderingListDemo project with some changes. See attached files for details.

> 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
>         Assigned To: Nick Belaevski
>
> 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