On Sun, 09 Oct 2011 09:54:13 -0300, upgrading <dufour_gaetan2...@yahoo.com> wrote:
Hi
Hi!
java.lang.NullPointerException org.apache.tapestry5.corelib.components.Grid$DefaultGridSortModel.getSortConstraints(Grid.java:346) org.apache.tapestry5.corelib.components.Grid.setupDataSource(Grid.java:463) @SetupRender void initializeValue() { i=((grid.getCurrentPage()-1) * (grid.getRowsPerPage())+1); // Grid model this.model = beanModelSource.createDisplayModel(Users.class,messages); this.model.add("shop",pcSource.create(Users.class, }
You're only providing the BeanModel when rendering (@SetupRender). Use onActivate() instead, as it's invoked when rendering and when handling an event request. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org