4 Replies Latest reply on Jan 26, 2010 3:16 PM by pmuir

    problem with datatable in jsf and weld

    cremersstijn

      Hi!


      I've found a problem when using jsf in combination with weld.


      I've got a named pojo:


      @Named("vacation")
      public class Vacation(){
      
          private String name;
          
          //getters and setters
      }



      And the following xhtml code:


      <h:dataTable
          value="#{bean.vacations}"
          var="vacation">
      
          <h:column>
              #{vacation.name}
          </h:column>
          
      </h:dataTable



      In this example the {vacation.name} is also null.


      When i replace the var of the datatable to another name for example v it works correct:


      <h:dataTable
          value="#{bean.vacations}"
          var="v">
      
          <h:column>
              #{v.name}
          </h:column>
          
      </h:dataTable