I really can recomment, to add the spring JSF integration library to the
entire mix of libs in the project, you get many benefits by using spring
IOC, like integrated AOP mechanisms...
Werner
Enrique Medina wrote:
At the moment, the IoC provided by JSF is only about objects and
properties, I'm afraid.
You'll have to use Spring or another advance IoC container for
constructor dependency injection, etc.
2005/8/31, Stefan Gesigora < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>:
Hello!
Is there another way without using an "addon-framework" to
initialize a backing-bean (without constructor intialization,
managed-properties)?
Stefan Gesigora
-----Ursprüngliche Nachricht-----
Von: Stefan Gesigora
Gesendet: Mittwoch, 31. August 2005 11:21
An: MyFaces Discussion
Betreff: AW: best way to initialize BackingBean?
Hi!
Thx Martin!
How can I integrate Shale into JSF (Sun RI)? Is there a tutorial
about this?
Stefan Gesigora
-----Ursprüngliche Nachricht-----
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>]
Gesendet: Mittwoch, 31. August 2005 11:13
An: MyFaces Discussion
Betreff: Re: best way to initialize BackingBean?
You might use Shale to do this kind of things.
With Shale, if your beans implement a special interface, several
methods will be called on your bean - one of them before the view is
shown...
regards,
Martin
On 8/31/05, Stefan Gesigora <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
>
>
>
>
>
> Hi folks!
>
>
>
> What is the best way to initialize BackingBeans?
>
> I would like to get data from a DB everytime before the jsp will
be shown
> initializing the jsp with this data.
>
> I can't use the constructor initialization cause I need it
everytime not
> only the first time.
>
> I can't use initialization via managed-property cause the data
isn't static...
>
>
>
> Any suggestions?
>
>
>
> Thx
>
> Stefan Gesigora
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German