This content has been marked as final.
Show 1 reply
-
1. Re: Encountered NullPointerException which useing a customsized DataTableDataModel and Rich:extendedDataTable Data
hantsy Oct 23, 2010 3:09 AM (in response to hantsy)@Name("myAction") @Scope(ScopeType.CONVERSATION) public class MyAction { private ExtendedTableDataModel<MyObject> dataModel; //getters and setters @In("entityManager") private EntityManager em; @SuppressWarnings("serial") public void createAddresseeDataModel() { this.dataModel= new ExtendedTableDataModel<Addressee>( new DataProvider<Addresee>(){ //in the implemetation method... I use em for pagination implmetation...but it caused the NPE.... }); } }