myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Lessard" <simon.lessar...@gmail.com>
Subject Re: Way to get the outcome which navigated to the page
Date Wed, 04 Jul 2007 16:02:49 GMT
Hello Michael,

The suggestion Andrew made works, but I would rather use Facelets for that
need. So you'll define the JSP only once asthe template, then you can make 2
pages using that template and pushing variable part into it. I think it
would be a cleaner solution.


Regards,

~ Simon

On 7/4/07, Andrew Robinson <andrew.rw.robinson@gmail.com> wrote:
>
> Extend the navigation handler and cache the last outcome in a place
> that you can access it from where you want it.
>
> On 7/4/07, Michael Obster <michael@obster.org> wrote:
> > Hi,
> >
> > I have a rule from
> > page1 -> page3 (outcome "list")
> > and
> > page2 -> page3 (outcome "confirm")
> >
> > Is there a way to get in page3 the outcome which was called before?
> > Because I don't want to write the JSP twice, I want to ask MyFaces from
> > which page page3 was called to render some optional parts of the page.
> >
> > Cheers,
> > Michael
> >
>

Mime
View raw message