[JBoss JIRA] Created: (RF-4440) reRender on a4j:commandButton only works once
by Stefan Mohr (JIRA)
reRender on a4j:commandButton only works once
---------------------------------------------
Key: RF-4440
URL: https://jira.jboss.org/jira/browse/RF-4440
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Netbeans 6.1; Sun Java Application Server 9.1 under Windows XP Professional 32-bit. Tested with Chrome and IE8.
Reporter: Stefan Mohr
Sample code to reproduce:
JSP:
--------
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://richfaces.org/rich"prefix="rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<html>
<body>
<f:view>
<a4j:form id="pnlMain">
<a4j:commandButton action="#{TestBean.goView2}" rendered="#{TestBean.drawView1}" value="Go" reRender="pnlMain" />
<a4j:commandButton action="#{TestBean.goView1}" rendered="#{TestBean.drawView2}" value="Back to table (Broken)" reRender="pnlMain" />
<h:commandButton action="#{TestBean.goView1}" rendered="#{TestBean.drawView2}" value="Back to table (Working)">
<a4j:support reRender="pnlMain" />
</h:commandButton>
</a4j:form>
</f:view>
</body>
</html>
-------
Backing Bean:
-------
package test;
public class TestBean
{
private int currentView = 1;
public TestBean()
{
}
public boolean getDrawView1()
{
return currentView == 1;
}
public boolean getDrawView2()
{
return currentView == 2;
}
public String goView1()
{
currentView = 1;
return null;
}
public String goView2()
{
currentView = 2;
return null;
}
}
-------
To test:
Deploy page and click first "Go" link - page rerenders.
Now click "Back to table (Broken)" - page won't rerender.
The "(Working)" link, which uses a4j:support on an h:commandButton, works as expected.
--
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
15 years, 11 months
[JBoss JIRA] Created: (RF-2774) rich:suggestionbox and a4j:support problem in Safari 3.1
by Nils Eckert (JIRA)
rich:suggestionbox and a4j:support problem in Safari 3.1
--------------------------------------------------------
Key: RF-2774
URL: http://jira.jboss.com/jira/browse/RF-2774
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: Mac OS 10.5.2, Safari 3.1 (5525.13), RichFaces 3.1.4SR1
Reporter: Nils Eckert
Hello together,
I noticed the following behavior.
In my form i got a rich:suggestionBox with a <a4j:support event="onchange" ... /> Children.
The onchange event calls an action and reRenders the hole form including the rich:suggestionBox.
This works in most Browsers (Firefox Mac + Windows, IE7).
But in Safari 3.1 I get the problem that the suggestionBox is not autocompleting after a onchange event was fired.
--
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
15 years, 11 months
[JBoss JIRA] Created: (RF-2811) a4j:repeat doesn't support java.util.Set
by Sergey Halipov (JIRA)
a4j:repeat doesn't support java.util.Set
----------------------------------------
Key: RF-2811
URL: http://jira.jboss.com/jira/browse/RF-2811
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: JDK 1.5
Reporter: Sergey Halipov
a4j:repeat interprets Sets as simple type not a collection. Example bellow doesn't work correctly. But it would work if we replaced HashSet with ArrayList.
JSP code:
<a4j:repeat value="#{bean.testLists}" var="list" id="repeat">
<h:outputText value="#{list}"></h:outputText><br />
</a4j:repeat>
Java bean:
public class Bean {
private Collection<String> testLists = new HashSet<String>();
public Bean() {
for (int i = 0; i < 30; i++) {
testLists.add(new Integer(i).toString());
}
}
public Collection<String> getTestLists() {
return testLists;
}
public void setTestLists(Collection<String> testLists) {
this.testLists = testLists;
}
}
--
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
15 years, 11 months