Hi, > The table on the jsp page gets the data > from > ${actionBean.object.children}. > > When it is submitted and its get validation error, it goes back to > "getContext().getSourcePageResolution()". The defaultHandler method was > not > executed and the actionBean was not populated with its children. All data > in > child table is gone. Fields are ok, as they get the data from > httpRequest. > > Is it a bug? How to make the pages display correct data after validation > error?
The way Stripes works is that event handlers are not called if there are validation errors. That way, you can write code in event handlers knowing that all validations have passed. In your case, populate your table data in the getter instead of in the event handler method: public Object getObject() { if (object == null) { object = new Object(); List children = new ArrayList(); object.setChildren(children); // ... } return object; } Hope that helps. Cheers, Freddy http://www.fdaoud.com ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users