You can use implicit objects such as "request", "session" and "header"
with Facelets too, so #{request.requestURI} should be perfectly valid,
but of course, you can always go through facesContext which brings a
world of possibilities :-)

Cheers,

Bruno

On 03/08/07, Wolf Benz <[EMAIL PROTECTED]> wrote:
> > If you are in a JSP view handler, JSP implicit variable are accessible.
>
> -- I'm not - I'm a fresh facelets convert!
>
> > However if you are not in JSP context (eg using Facelets as view
> > handler) am not sure session, request, headers, etc are available.
>
> -- Well, they must be, I guess, although I'm not sure how directlyt really.
> Like whether #{request.requestURI}  will do, or whether I would have to do:
> e.g.  #{facesContext.externalContext.session.request.requestURI}
>
> -Wolf
>
> >
> > En l'instant précis du 03/08/07 09:19, Wolf Benz s'exprimait en ces termes:
> > > David,
> > > In the doc I found that you could get to the session via
> > > #{facesContext.externalContext.session}
> > > Are session & request accessible *directly* as well?
> > > To do simple stuff like e.g. #{request.requestURI}  (would this work?)
> > >
> > > -Wolf
> > >
> > > On 8/3/07, Wolf Benz <[EMAIL PROTECTED]> wrote:
> > >
> > >> Thx David - that was what I was looking for!
> > >> -Wolf
> > >>
> > >> On 8/3/07, David Delbecq <[EMAIL PROTECTED]> wrote:
> > >>
> > >>> http://www.coreservlets.com/JSF-Tutorial/
> > >>>
> > >>> Section 4
> > >>>
> > >>> But it's not complete.
> > >>>
> > >>> En l'instant précis du 02/08/07 21:43, Wolf Benz s'exprimait en ces 
> > >>> termes:
> > >>>
> > >>>
> > >>>> That one I had :-)
> > >>>> I hoped someone might have made a typical "dev's summary"
> > >>>> (By that I mean "cut the crap, just the rules and e few examples"-ish.)
> > >>>> -Wolf
> > >>>>
> > >>>> On 8/2/07, David Delbecq <[EMAIL PROTECTED]> wrote:
> > >>>>
> > >>>>
> > >>>>> http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf
> > >>>>> html version: http://java.sun.com/javaee/5/docs/tutorial/doc/
> > >>>>>
> > >>>>> Search for "implicit objets" and take also a look at
> > >>>>> Chapter 4:   JavaServer Pages Technology
> > >>>>>    -> Unified Expression Language
> > >>>>>
> > >>>>> Wolf Benz a écrit :
> > >>>>>
> > >>>>>
> > >>>>>> Hi List,
> > >>>>>> Does anyone know of a nice Intro/Ref/Tutorial to EL v2?
> > >>>>>> (with stuff like: what is new, what implicit objects can be used, 
> > >>>>>> like
> > >>>>>> "request" and its instance vars like request.requestURI etc)
> > >>>>>>
> > >>>>>> -Wolf
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>
> > >>> --
> > >>> http://www.noooxml.org/
> > >>>
> > >>>
> > >>>
> >
> >
> > --
> > http://www.noooxml.org/
> >
> >
>

Reply via email to