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

Nick Belaevski resolved RF-3411.
--------------------------------

    Fix Version/s:     (was: Future)
       Resolution: Won't Fix
         Assignee: Tsikhon Kuprevich  (was: Nick Belaevski)


This issue is caused by the fact that ui:repeat doesn't implement 
invokeOnComponent(). Use a4j:repeat instead

> a4j:commandLink and commandButton do not work inside a region inside a 
> ui:repeat
> --------------------------------------------------------------------------------
>
>                 Key: RF-3411
>                 URL: https://jira.jboss.org/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
>            Assignee: Tsikhon Kuprevich
>
> 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>
>                       &#160;
>                       <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>
>                       &#160;
>                       <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: 
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