[richfaces-issues] [JBoss JIRA] Updated: (RF-3580) Ordering list keeps old values.
Sergey Halipov (JIRA)
jira-events at lists.jboss.org
Thu May 29 07:56:46 EDT 2008
[ http://jira.jboss.com/jira/browse/RF-3580?page=all ]
Sergey Halipov updated RF-3580:
-------------------------------
Attachment: q.jsp
> 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
> Attachments: q.jsp
>
>
> 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