myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Call a backing bean before show a JSP
Date Mon, 07 Jan 2008 21:47:28 GMT
Runs fine on JBoss if you aren't using Seam. If you are using seam use the
"action" attribute in the pages.xml. It is basically the same thing. My
on-load is nice for ppl. who want the functionality without adding a full
framework

On Jan 7, 2008 2:37 PM, daniel ccss <danielccss2@gmail.com> wrote:

> Thanks Andrew, but i stop reading when saw this:
> "
> Note: If you are using JBoss Seam you cannot use it due to Seam configuration conflicts.
> "
>
> Actually our project runs in OAS but we need for it to be posible to run
> in JBoss also.
>
> Any other solution?
>
> On Jan 7, 2008 3:33 PM, Andrew Robinson <andrew.rw.robinson@gmail.com>
> wrote:
>
> > See my response. The simplest component is the jsf-comp one that I
> > wrote:
> >
> > http://jsf-comp.sourceforge.net/components/onload/index.html
> >
> >
> >  On Jan 7, 2008 2:26 PM, daniel ccss <danielccss2@gmail.com> 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 App1, actually the link calls directly
> > > the index.jsp of the App1, 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 <carlson14@llnl.gov> 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
> > > >
> > > >
> > >
> >
>

Mime
View raw message