6 Replies Latest reply on May 22, 2007 12:50 PM by Alexander Smirnov

    input fields within a4j:repeat

    Zwirek Zwirek Newbie

      Hi!

      A have a problem with rerendering input fields within a4j:repeat
      (and h:dataTable) tag.

      My jsp code:

      
      <table>
      <a4j:outputPanel id="panelPie">
      <a4j:repeat value="#{AgeBean.age.pieList}" var="pie" id="listaRepeat">
       <tr><td>
       <a4j:region id="rrr">
       <h:inputText value="#{pie.numer}" id="numerPie" styleClass="inp"/>
       </a4j:region>
       </td></tr>
      </a4j:repeat>
      </a4j:outputPanel>
       <tr><td>
       <a4j:commandButton value="Add" action="#{AgeBean.addPie}" reRender="panelPie"/>
       </td></tr>
      
      </table>
      
      




      My managed bean method:
       public void addPie(){
       Pie ent = new Pie();
       this.age.getPieList().add(ent);
       }
      


      When I click _in Firefox_ "Add" button and write something in my new created
      input text field and then click "Add" button again, this input field is
      rerendered as blank field (in managed bean I have null value for pie.numer
      property).

      In IE 6.0 everything works.
      A4J, version 1.1.1 (1.1.0 too).
      JSF RI, Implementation-Version: 1.1_02-b08 (from OC4J 10.1.3.1)


      Sorry for my English.
      Best regards

      Bird