Craig McClanahan wrote:



Solving these sorts of problems is exactly what the Shale framework
(part of the Struts project) is designed to address.  Current starting
point for info is on the wiki (i'm working up the docs for the
website).

http://wiki.apache.org/struts/StrutsShale

You'll be interested particularly in the ViewController interface, and
the fact that it gives you event callbacks at the beginning and end of
a view (init and destroy) and well as other events dependent upon
whether you are processing a form submit or not (preprocess and
prerender).  Shale presumes that JSF exists, and leverages its front
controller framework rather than treating JSF just as a mechanism for
constructing the view.

Craig


Thanks for the fast answer, you basically already implemented the approach I was thinking of, great... you saved me lots of work. A question however, could this stuff be moved into some kind of extended datamodel, so that the datamodel implementors do not have
to deal with event callbacks into the view controller?

Shale might be a good place to resolve this issue there.
Since you already have the base mechanisms in place.

Thanks for your fast answer

Werner

Reply via email to