humm :( the problem is that my bean`s scope is session and not request, so
Ì`m can´t use the managed-property :(

Any other solution?
Andrew what´s wrong with my jsf-comp implementation?

Need help with this plz.
On Jan 8, 2008 7:49 PM, daniel ccss <[EMAIL PROTECTED]> wrote:

> Sven this looks pretty easy i'm gonna try it and let you know thanks.
>
>
> On Jan 8, 2008 9:36 AM, Rottstock, Sven <[EMAIL PROTECTED]> wrote:
>
> >  Why don't you use managed-properties for this scenario? You can call
> > your action method in App1; put some parameters in the URL and forward to
> > App2. If you use a request bean in your index.jsp (App2) then you can
> > initialize your bean with the paramaters from App1 like this:
> > <managed-bean>
> >   <managed-bean-name>initBean</managed-bean-name>
> >   <managed-bean-class>my.package.InitBean</managed-bean-class>
> >   <managed-bean-scope>request</managed-bean-scope>
> >   <managed-property>
> >     <property-name>param</property-name>
> >     <value>#{param['whatever']}</value>
> >   </managed-property>
> > <managed-bean>
> >
> > Cheers
> >
> > Sven
> >
> >  ------------------------------
> > *Von:* daniel ccss [mailto:[EMAIL PROTECTED]
> > *Gesendet:* Montag, 7. Januar 2008 22:30
> > *An:* MyFaces Discussion
> > *Betreff:* Re: Call a backing bean before show a JSP
> >
> >   Sorry, this is the correct question, I have a mistake on the App # :P
> >
> > Let me explain better my case, I have an App1 and App2, they are in
> > different servers, App1 have a link to call the App2, but I need do some
> > things before show the index of the App*2*, actually the link calls
> > directly the index.jsp of the App*2*, In this case I only need the
> > listener for do things when the App1 calls App2, something like in the
> > onload of the App2. Can I use a listener when a specific JSP is show? Can I
> > call directly the backing bean?
> >
> > thanks again
> >
> > On Jan 7, 2008 3:26 PM, daniel ccss <[EMAIL PROTECTED]> wrote:
> >
> > > Thanks for the answers, I used a phaselistener but is for all the
> > > application, like the one in the example of the login:
> > >
> > >  <phase-listener>com.loffler.copycenter.controller.LoggedInCheck
> > > </phase-listener>
> > > but this type of listener is call for every Bean and my case is
> > > different.
> > >
> > > Let me explain better my case, I have an App1 and App2, they are in
> > > different servers, App1 have a link to call the App2, but I need do some
> > > things before show the index of the App*2*, actually the link calls
> > > directly the index.jsp of the App*2*, In this case I only need the
> > > listener for do things when the App1 calls App2, something like in the
> > > onload of the App2. Can I use a listener when a specific JSP is show? Can 
> > > I
> > > call directly the backing bean?
> > >
> > > thanks
> > >
> > >
> > >
> > > On Jan 7, 2008 2:53 PM, John Carlson <[EMAIL PROTECTED]> wrote:
> > >
> > > > Can you do it in Spring?
> > > >
> > > > John
> > > >
> > > >
> > > > At 12:24 PM 1/7/2008, you wrote:
> > > >
> > > > Hi all,
> > > >
> > > > In struts:
> > > > I can call a JSP page like http://..../JSP/Example.jsp and I also
> > > > can call an action that do something and then do the forward to the
> > > > Example.jsp like this: http:// <http:///> .../Example*.do
> > > > *
> > > > In JSF:
> > > > I can call a JSP page like http://...faces/JSP/Example.jsp *but *there
> > > > is a way to call a backing bean before show the JSP?
> > > >
> > > > I need to do something in the backing bean (set some variables, etc)
> > > > before showing the jsp, but I dont know if this is posible in JSF.
> > > >
> > > > thanks
> > > >
> > > >
> > >
> >
>

Reply via email to