On 2/4/07, Lisa <[EMAIL PROTECTED]> wrote:
Is there a way to automatically call an init() method after all setters have been called on a managed-bean? I am looking for something I can put in the .xml config file or an interface that I can extend. Spring has this facility. We are using Spring for most of the framework but using JSF managed-bean facility for all backing beans.
The "view controller" feature of the Shale framework[1] supports this use case. The init() callback is called after the view has been restored (and after any managed property setters have been called), but before the main part of the lifecycle proceeds. If you want to initialize things only when processing a postback, and not on a get, use the preprocess() callback instead. There are also prerender() and destroy() callbacks, for pulling data you need to render from your model, and cleaning up after rendering, respectively. thanks
L -- View this message in context: http://www.nabble.com/JSF-lifecyle---managed-bean-tf3172695.html#a8801378 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Craig McClanahan [1] http://shale.apache.org/shale-view/index.html

