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"
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
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
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.
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