[ 
https://jira.jboss.org/jira/browse/RF-3580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nick Belaevski updated RF-3580:
-------------------------------

    Priority: Minor  (was: Major)


> Ordering list keeps old values.
> -------------------------------
>
>                 Key: RF-3580
>                 URL: https://jira.jboss.org/jira/browse/RF-3580
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Sergey Halipov
>            Assignee: Nick Belaevski
>            Priority: Minor
>             Fix For: Future
>
>         Attachments: diff.txt, 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: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to