3 Replies Latest reply on Dec 13, 2008 11:55 AM by luke.poldo.mailinator.com

    seam generate-ui is not workink

    leoloko

      Hi,


      I have two Entitys basics.




      @Entity
      public class Category {
          @Id
          @GeneratedValue
          private Long id;
          private String name;
          @OneToMany(mappedBy="category")
          private List<Product> products;
      
          setters and getters
      
      }



      @Entity
      public class Product {
          @Id
          @GeneratedValue
          private Long id;
          private String name;
          @ManyToOne
          private Category category;
      
          setters and getters
      
      }




      Im go to seam console and type seam generate-ui and build de beans and views .xhtml


      im open browser and click in create category but the exception is launched:



      Exception during request processing:
      Caused by javax.faces.FacesException with message: "Problem in renderResponse: javax.el.ELException: /CategoryEdit.xhtml @88,68 rendered="#{empty categoryHome.products}": Error reading 'products' on type com.mydomain.test.CategoryHome_$$_javassist_4"



      Somebody help-me?


      sorry for my bad english... i am from brazil... thanks!!!