Yes but really you should look at Shale.  It provides a simple
*standard* way to do this.  Take the time to learn this aspect of
Shale.  You won't regret it.

sean

On 8/31/05, hicham abassi <[EMAIL PROTECTED]> wrote:
> Is it possible to do that with a PhaseListener ?
> http://www.jsfcentral.com/redirect?listingTitle=JSF%20PhaseListener%20-%20Is%20This%20User%20Logged%20In?&categoryTitle=Articles%20and%20Books&categoryPath=reading&site=http://groups.yahoo.com/group/jsf-developers/message/471
> 
> I have to do the same thing than Stephan
> 
> 
> 2005/8/31, Werner Punz <[EMAIL PROTECTED]>:
> > 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
> > >
> > >
> > >
> >
> >
> 
> 
> --
> 
> hicham ABASSI
> [EMAIL PROTECTED]
>

Reply via email to