[richfaces-issues] [JBoss JIRA] Commented: (RF-3411) a4j:commandLink and commandButton do not work inside a region inside a ui:repeat
Damian Harvey (JIRA)
jira-events at lists.jboss.org
Tue May 13 10:27:27 EDT 2008
[ http://jira.jboss.com/jira/browse/RF-3411?page=comments#action_12412614 ]
Damian Harvey commented on RF-3411:
-----------------------------------
Sorry, I left out the best bit.
If you change the ui:repeat to an a4j:repeat then it works fine.
> 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
More information about the richfaces-issues
mailing list