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

Sascha Buchner updated RF-11754:
--------------------------------

    Description: 
a4j:repeat does not render correctly anymore - was working with 
4.1.0.20111101-M4

After clicking the link it should display some numbers.

View:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; >
<html xmlns="http://www.w3.org/1999/xhtml";
        xmlns:ui="http://java.sun.com/jsf/facelets";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:f="http://java.sun.com/jsf/core";
        xmlns:c="http://java.sun.com/jsp/jstl/core";
        xmlns:a4j="http://richfaces.org/a4j";
        xmlns:rich="http://richfaces.org/rich";
        >
<f:view contentType="text/html" locale="de">

        <h:head></h:head>

        <h:body>

                <h:form id="form1">


                        <a4j:commandLink value="Submit"
                                action="#{a4jRepeatBacking.startAction}" 
render="listtable" />
                        <br />
                        <br />
                        <h:panelGroup id="listtable">

                                <a4j:repeat var="item" 
value="#{a4jRepeatBacking.count}"
                                        rowKeyVar="row">

                                        <h:outputText value="#{item}" /> - 
                                                </a4j:repeat>
                        </h:panelGroup>

                </h:form>
        </h:body>
</f:view>
</html>


Backing:

import java.util.ArrayList;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@RequestScoped
@ManagedBean
public class A4jRepeatBacking
{
        private ArrayList<Long> count;

        public A4jRepeatBacking()
        {
                super();
        }

        public String startAction()
        {
                count = new ArrayList<Long>();
                for (long i = 1; i < 4; i++)
                {
                        count.add(i);
                }

                return null;
        }

        public ArrayList<Long> getCount()
        {
                return count;
        }

}


  was:
a4j:repeat doe not render correctly anymore, was working with 4.1.0.20111101-M4
After clicking the link it should display some numbers.

View:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; >
<html xmlns="http://www.w3.org/1999/xhtml";
        xmlns:ui="http://java.sun.com/jsf/facelets";
        xmlns:h="http://java.sun.com/jsf/html";
        xmlns:f="http://java.sun.com/jsf/core";
        xmlns:c="http://java.sun.com/jsp/jstl/core";
        xmlns:a4j="http://richfaces.org/a4j";
        xmlns:rich="http://richfaces.org/rich";
        >
<f:view contentType="text/html" locale="de">

        <h:head></h:head>

        <h:body>

                <h:form id="form1">


                        <a4j:commandLink value="Submit"
                                action="#{a4jRepeatBacking.startAction}" 
render="listtable" />
                        <br />
                        <br />
                        <h:panelGroup id="listtable">

                                <a4j:repeat var="item" 
value="#{a4jRepeatBacking.count}"
                                        rowKeyVar="row">

                                        <h:outputText value="#{item}" /> - 
                                                </a4j:repeat>
                        </h:panelGroup>

                </h:form>
        </h:body>
</f:view>
</html>


Backing:

import java.util.ArrayList;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@RequestScoped
@ManagedBean
public class A4jRepeatBacking
{
        private ArrayList<Long> count;

        public A4jRepeatBacking()
        {
                super();
        }

        public String startAction()
        {
                count = new ArrayList<Long>();
                for (long i = 1; i < 4; i++)
                {
                        count.add(i);
                }

                return null;
        }

        public ArrayList<Long> getCount()
        {
                return count;
        }

}



    
> a4j:repeat problem with bean changes in requestscope since 4.1.0.-CR1
> ---------------------------------------------------------------------
>
>                 Key: RF-11754
>                 URL: https://issues.jboss.org/browse/RF-11754
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component
>    Affects Versions: 4.1.0.CR1
>         Environment: Mojarra 2.1.3, Java 1.6.0.26, Tomcat 6.20
>            Reporter: Sascha Buchner
>
> a4j:repeat does not render correctly anymore - was working with 
> 4.1.0.20111101-M4
> After clicking the link it should display some numbers.
> View:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; >
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:ui="http://java.sun.com/jsf/facelets";
>       xmlns:h="http://java.sun.com/jsf/html";
>       xmlns:f="http://java.sun.com/jsf/core";
>       xmlns:c="http://java.sun.com/jsp/jstl/core";
>       xmlns:a4j="http://richfaces.org/a4j";
>       xmlns:rich="http://richfaces.org/rich";
>       >
> <f:view contentType="text/html" locale="de">
>       <h:head></h:head>
>       <h:body>
>               <h:form id="form1">
>                       <a4j:commandLink value="Submit"
>                               action="#{a4jRepeatBacking.startAction}" 
> render="listtable" />
>                       <br />
>                       <br />
>                       <h:panelGroup id="listtable">
>                               <a4j:repeat var="item" 
> value="#{a4jRepeatBacking.count}"
>                                       rowKeyVar="row">
>                                       <h:outputText value="#{item}" /> - 
>                                               </a4j:repeat>
>                       </h:panelGroup>
>               </h:form>
>       </h:body>
> </f:view>
> </html>
> Backing:
> import java.util.ArrayList;
> import javax.faces.bean.ManagedBean;
> import javax.faces.bean.RequestScoped;
> @RequestScoped
> @ManagedBean
> public class A4jRepeatBacking
> {
>       private ArrayList<Long> count;
>       public A4jRepeatBacking()
>       {
>               super();
>       }
>       public String startAction()
>       {
>               count = new ArrayList<Long>();
>               for (long i = 1; i < 4; i++)
>               {
>                       count.add(i);
>               }
>               return null;
>       }
>       public ArrayList<Long> getCount()
>       {
>               return count;
>       }
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.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