Re: T5: timeout exception when using Grid - Solved, but query

2009-01-30 Thread tapestryphoto
Many thanks Ville. Quite obvious when one sees how to do it! p. Quoting Ville Virtanen : This is what we use, and it works well: @Retain private BeanModel model; { model = beanModelSource.createEditModel(Organization.class, messages); model.add("organizationType"

Re: T5: timeout exception when using Grid - Solved, but query

2009-01-29 Thread Ville Virtanen
This is what we use, and it works well: @Retain private BeanModel model; { model = beanModelSource.createEditModel(Organization.class, messages); model.add("organizationType"); model.add("parentOrganization"); } public BeanModel getModel() { return mode

Re: T5: timeout exception when using Grid - Solved, but query

2009-01-29 Thread tapestryphoto
My grid data required a model. In copying this in from an example I had: @SuppressWarnings("unchecked") @Property @Retain private BeanModel _myModel; The key here is @Retain. This works fine until there is a timeout (default 10 mins) and the page is returned to the po

Re: T5: timeout exception when using Grid

2009-01-29 Thread tapestryphoto
Further investigation reveals this is happening due to the page timing out and being returned to the pool by the timeout specified by the configuration option: tapestry.page-pool.active-window (which defaults to 10 minutes) So it would appear that it's being reset when returned to the pool.

T5: timeout exception when using Grid

2009-01-28 Thread tapestryphoto
Hi! I have a form and a grid component on one of my pages (the grid is outside the form). All operates normally (using Jetty) unless I leave it for 10 minutes. If I then attempt to perform a submit I get the Null Pointer Exception listed below. It only happens on pages with the grid comp