Anonymous - 2013-06-14

I am working on a project in NetBeans 7.3 with PrimeFaces 3.4 and I am using GlassFish 3.1.2.2 and using PostgreSQL 9.1.

The PrimeFaces CRUD generator has been working pretty well. But, I had to add a new table (simple table for books based on ISBN number) with no foreign key relationships defined or anything right now. Should be a simple, no brainer. But, I generated the Entity Class for the new table only. Then, I generated the PrimeCRUD files for the new entity only. In my haste, I stupidly forgot about the files overwriting my index.xhtml and appmenu.xhtml. I purposely told it to create a differently named bundle so it didn't overwrite my current and highly edited bundle file!

This may be with the NetBeans Entity Class generator and nothing to do with PrimFaces CRUD generator.

Anyway, since generating the new classes for the new entity (Book), if I do not do a complete Clean & Build every time, then when I try to run the list.xhtml for the new Book entity, I always get a NullPointerException in the AbstractController class??? But, I do a Clean & Build, all will run fine!

I am not sure what has happened cause this issue. I had no problem at all prior to creating the classes for the new entity.

Thanks,

James Stover
stoverje@icloud.com