[JBoss JIRA] Created: (RF-3411) a4j:commandLink and commandButton do not work inside a region inside a ui:repeat
by Damian Harvey (JIRA)
a4j:commandLink and commandButton do not work inside a region inside a ui:repeat
--------------------------------------------------------------------------------
Key: RF-3411
URL: http://jira.jboss.com/jira/browse/RF-3411
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: Jboss Seam 2.1.0, Jboss AS 4.2.2, Richfaces 3.2, Mac OSX 10.4.11 (also tested under Windows XP with IE7)
Reporter: Damian Harvey
If an a4j:commandLink (or a4j:commandButton) are inside an a4j:region which is inside a ui:repeat they will not be able to fire their actions. Instead the browser will render a blank page. The server logs aren't touched.
Very simple page and bean to recreate. Using Seam to bind page and bean. I can create sample project if required.
Page:
======
<h:form>
<ui:repeat value="#{testBean.cities}" var="city">
#{city} :
<a:commandLink
action="#{testBean.hello}"
reRender="nameDiv">
<h:outputText value="This Works"/>
</a:commandLink>
 
<a:region>
<a:commandLink
action="#{testBean.hello}"
reRender="nameDiv">
<h:outputText value="inside region"/>
</a:commandLink>
<a:commandButton
action="#{testBean.hello}"
reRender="nameDiv"
value="This Does Not"/>
</a:region>
<br/>
</ui:repeat>
<hr/>
<a:repeat value="#{testBean.cities}" var="city">
#{city} :
<a:commandLink
action="#{testBean.hello}"
reRender="nameDiv">
<h:outputText value="This Works"/>
</a:commandLink>
 
<a:region>
<a:commandLink
action="#{testBean.hello}"
reRender="nameDiv">
<h:outputText value="This Also Now Works"/>
</a:commandLink>
</a:region>
<br/>
</a:repeat>
</h:form>
Bean:
======
public List<String> getCities() {
List<String> cities = new ArrayList<String>();
cities.add("London");
cities.add("Auckland");
return cities;
}
public void hello() {
log.info(MessageFormat.format(messages.get("test"), "hello"));
facesMessages.addFromResourceBundle("test", "Hello");
}
--
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
17 years, 4 months
[JBoss JIRA] Created: (RF-3382) Closed SimpleTogglePanel on postback behaves like it is being rendered
by h b (JIRA)
Closed SimpleTogglePanel on postback behaves like it is being rendered
----------------------------------------------------------------------
Key: RF-3382
URL: http://jira.jboss.com/jira/browse/RF-3382
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: Facelets, MyFaces, Tomcat, XP/OSX
Reporter: h b
On page post-back, the SimpleTogglePanel with switch type 'Ajax' or 'Server' invokes backing bean getters even when it is not open.
<rich:simpleTogglePanel opened="false" switchType="ajax">
<f:facet name="header">hello</f:facet>
<ui:repeat value="#{backingBean.expensiveData}" var="data">
#{data.tag}
</ui:repeat>
<rich:dataTable value="#{backingBean.expensiveData2}".../>
<h:outputText value="#{backingBean.expensiveData3}"/>
</rich:simpleTogglePanel>
The first time the page is rendered backingBean.getExpensiveData, getExpensiveData2 and getExpensiveData3 are not invoked.
However on postback getExpensiveData, getExpensiveData2 are invoked (getExpensiveData3 is not invoked).
The same thing happens with TabControls that are not visible and toggle panel facets that are not visible.
--
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
17 years, 4 months