[JBoss JIRA] Created: (RF-3580) Ordering list keeps old values.
by Sergey Halipov (JIRA)
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
16 years, 10 months
[JBoss JIRA] Created: (RF-4045) componentControl: ajax buzzes after Ajax submit if using componentControl with context menu under JSP + MyFaces.
by Alexander Dubovsky (JIRA)
componentControl: ajax buzzes after Ajax submit if using componentControl with context menu under JSP + MyFaces.
----------------------------------------------------------------------------------------------------------------
Key: RF-4045
URL: https://jira.jboss.org/jira/browse/RF-4045
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: JSP + MyFaces
3.2.2.BETA2
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Source:
<rich:panelMenu id="ccContextMenuPanelMenuID">
<h:outputText value="click text" />
</rich:panelMenu>
<rich:contextMenu id="ccContextMenuID" >
<rich:menuItem value="tab1">
</rich:menuItem>
<rich:menuSeparator />
<rich:menuItem value="a">
</rich:menuItem>
<rich:menuItem value="b">
</rich:menuItem>
<rich:menuItem value="c">
</rich:menuItem>
</rich:contextMenu>
<rich:componentControl event="onclick"
attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID"
operation="show" />
___
# Open the page (see source above)
# Make ajax submit
Result: ajax buzzes
--
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
16 years, 10 months