Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11754

a4j:repeat problem with bean changes in requestscope since 4.1.0.-CR1

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 4.1.0.CR1
    • Fix Version/s: None
    • Component/s: component
    • Labels:
      None
    • Environment:

      Mojarra 2.1.3, Java 1.6.0.26, Tomcat 6.20

      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; }

      }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lfryc Lukáš Fryč
                  Reporter:
                  mindlink Sascha Buchner
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: