I have had Shale in mind for some time now and found some reference to this
feature while googling, but unfortunately in this release we can not make
any major improvements (and integrate Shale), but this is yet another reason
I can put on my list so that management will allow time.

thanks


L


craigmcc wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JSF-lifecyle---managed-bean-tf3172695.html#a8802245
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to