It looks like the implicit Object map is missing the following:

application
request
session

-- Jacob

Mike Kienenberger <[EMAIL PROTECTED]> wrote on 08/12/2005, 05:26:18 PM:
> No, your email got there (both of them), but I had not had time to read it 
> yet.
> 
> Martin, a committer, also answered your question, pointing you to the same 
> file.
> 
> I don't have time to read the spec right now, but if there's a missing
> "request" object, then submit a bug with a patch.  It should be pretty
> trivial to add in.
> 
> -Mike
> 
> On 8/12/05, Galen Dunkleberger  wrote:
> > Hey Mike,
> >           Yeah I'm wondering if my email got sent at all to the
> > myfaces users list...but I think you touched on a point that I"m
> > confused on
> > 
> >  I don't see a "request" predefined object.   I see "requestScope"
> > 
> > Shouldn't there be a predefined object "request" that would return the
> > HttpServletRequest object....that "requestScope" just returns the
> > requestMap...I would think the resolver would resolve the "request"
> > variable to the HttpServletRequest somewhere in there but it doesn't
> > look that way...
> > 
> > On 8/12/05, Mike Kienenberger  wrote:
> > > Galen, I'm using Myfaces and the jsf-spring.jar resolver.   I'm not
> > > sure if that makes any difference as I've never tried to use
> > > #{request.serverName} .
> > >
> > > I think the Myfaces extensions are now that the point where they
> > > should work with a non-MyFaces implemention now.   If you find a case
> > > where that's not true, open an bug issue -- there's a category for
> > > that kind of problem now in the tracker.
> > >
> > > As for no one answering your question -- you're not being patent enough :)
> > >
> > > I hadn't even seen your question yet.   And sometimes it takes a long
> > > time for a response for a difficult question, depending on which
> > > committers are on vacation :)
> > >
> > > I think the file you're looking for is
> > > org.apache.myfaces.el.VariableResolverImpl in the impl project.  :)
> > > I found it right off :)
> > >
> > > I don't see a "request" predefined object.   I see "requestScope"
> > >
> > >
> > > On 8/12/05, Galen Dunkleberger  wrote:
> > > > Man I am stumped on this one...I"m looking all through the source and
> > > > can't figure out how myfaces ever returns the request object in an EL
> > > > expression and no one on the mailing list is answering my question.
> > > > What implementation of faces are most people using with facelets?
> > > > JSF-RI 1.2? If so how do they like it? I'm assuming myfaces components
> > > > won't play nice yet with that implementation though right?
> > > >
> > > > On 8/11/05, Jacob Hookom  wrote:
> > > > > no, what you are trying to do is *exactly* correct.  the only problem 
> > > > > is
> > > > > that 'request' isn't being resolved by MyFaces.
> > > > >
> > > > > when you say 'request', you are getting the request object
> > > > > (HttpServletRequest) and can access any of its bean properties,
> > > > > including 'serverName'.
> > > > >
> > > > > when you say 'requestScope', you are getting the request's attribute
> > > > > map... same as request.getAttribute(name).
> > > > >
> > > > > Galen Dunkleberger wrote:
> > > > >
> > > > > >so am I way off base here trying to call #{request.serverName} since
> > > > > >that's an actual propeties of the request object and not in the
> > > > > >attribute map? If so I guess there is no easy way to get to the
> > > > > >request object except wrapping it in a managed bean or something.
> > > > > >
> > > > > >On 8/11/05, Jacob Hookom  wrote:
> > > > > >
> > > > > >
> > > > > >>It's not the request map, it's the request object.  I remember
> > > > > >>experiencing problems with hashing Strings against small maps-- as
> > > > > >>MyFaces is using.  Sometimes the hash algorithm, because the set is 
> > > > > >>so
> > > > > >>small, won't hit the correct value and return null.  It might be it,
> > > > > >>might not-- but at least the logs show that Facelets is properly 
> > > > > >>asking
> > > > > >>for the variable! :-D
> > > > > >>
> > > > > >>Galen Dunkleberger wrote:
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>>Ah disregard that last email doesn't have anything to do with that
> > > > > >>>line...definitely something in the variableresolver but I can't see
> > > > > >>>anywhere they would actually return the request map
> > > > > >>>
> > > > > >>>On 8/11/05, Galen Dunkleberger  wrote:
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>>So I throw some break points in the VariableResolverImpl i can 
> > > > > >>>>look in
> > > > > >>>>the _scopes hashmap and see the scope with the key "request" but 
> > > > > >>>>the
> > > > > >>>>call on line 298
> > > > > >>>>Scope scope = (Scope) _scopes.get(scopeKey); returns null...I'm
> > > > > >>>>running jdk 1.5. that probably doesn't matter right. I'll shoot 
> > > > > >>>>this
> > > > > >>>>question over to the myfaces mailing list see if anyone knows why 
> > > > > >>>>this
> > > > > >>>>would happen.
> > > > > >>>>
> > > > > >>>>On 8/11/05, Jacob Hookom  wrote:
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>>I know it's working with JSF 1.2, but with MyFaces, I get this 
> > > > > >>>>>in my logs:
> > > > > >>>>>
> > > > > >>>>>12000 myfaces.el.VariableResolverImpl [WARN] Variable 'request' 
> > > > > >>>>>could
> > > > > >>>>>not be resolved.
> > > > > >>>>>
> > > > > >>>>>I'm not sure why it can't resolve the request, because it looks 
> > > > > >>>>>like
> > > > > >>>>>Facelets is asking for the variable, but it isn't returning one.
> > > > > >>>>>
> > > > > >>>>>Galen Dunkleberger wrote:
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>>Yes
> > > > > >>>>>>
> > > > > >>>>>>On 8/11/05, Jacob Hookom  wrote:
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>You are using MyFaces with Facelets then?
> > > > > >>>>>>>
> > > > > >>>>>>>Galen Dunkleberger wrote:
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>>Is facelets able to get to the scope objects via EL? I put
> > > > > >>>>>>>>#{request.serverName} in my page but nothing gets written.
> > > > > >>>>>>>>                                   Thanks,
> > > > > >>>>>>>>                                       Galen
> > > > > >>>>>>>>
> > > > > >>>>>>>>On 8/10/05, Jacob Hookom  wrote:
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>>Comments below....
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>Galen Dunkleberger wrote:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>>Hello,
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>I am sure someone has already asked these questions before 
> > > > > >>>>>>>>>>so I
> > > > > >>>>>>>>>>apologize ahead of time for being a facelets newbie and 
> > > > > >>>>>>>>>>asking what
> > > > > >>>>>>>>>>I'm sure is one of a million "how do i get it to work with 
> > > > > >>>>>>>>>>MyFaces"
> > > > > >>>>>>>>>>questions.
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>I guess my first question is can I use facelets with the 
> > > > > >>>>>>>>>>latest build
> > > > > >>>>>>>>>>of MyFaces (pretty sure i can) and if so do I have to do 
> > > > > >>>>>>>>>>anything
> > > > > >>>>>>>>>>special?
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>Yep, I have MyFaces running with the Hangman demo on Tomcat 
> > > > > >>>>>>>>>5.0.28
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>>and
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>Can I run Facelets (with MyFaces) under JBoss (Tomcat)? Or 
> > > > > >>>>>>>>>>do I need a
> > > > > >>>>>>>>>>container that supports jsp 2.1 (ie glassfish)?
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>That's one of the benefits of Facelets that you can run it 
> > > > > >>>>>>>>>on Tomcat
> > > > > >>>>>>>>>(older web containers-- JSP 1.2).  I even have Facelets 
> > > > > >>>>>>>>>running on
> > > > > >>>>>>>>>WebLogic 8.1!
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>>I'm asking these question because if i try to deploy my app 
> > > > > >>>>>>>>>>or any of
> > > > > >>>>>>>>>>the demo apps people have created i get the following errors
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>20:56:32,859 ERROR [Digester] Parse Error at line 2 column 
> > > > > >>>>>>>>>>14:
> > > > > >>>>>>>>>>Document is invalid: no grammar found.
> > > > > >>>>>>>>>>org.xml.sax.SAXParseException: Document is invalid: no 
> > > > > >>>>>>>>>>grammar found.
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>and
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>20:56:32,906 ERROR [Digester] Parse Error at line 2 column 
> > > > > >>>>>>>>>>14:
> > > > > >>>>>>>>>>Document root element "faces-config", must match DOCTYPE 
> > > > > >>>>>>>>>>root "null".
> > > > > >>>>>>>>>>org.xml.sax.SAXParseException: Document root element 
> > > > > >>>>>>>>>>"faces-config",
> > > > > >>>>>>>>>>must match DOCTYPE root "null".
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>Here is my faces-config
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>> > > > >>>>>>>>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > > > >>>>>>>>>>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > > > > >>>>>>>>>>http://java.sun.com/xml/ns/j2ee/web-facesconfig_1_2.xsd";
> > > > > >>>>>>>>>>version="1.2">
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>   
> > > > > >>>>>>>>>>           
> > > > > >>>>>>>>>>           com.sun.facelets.FaceletViewHandler
> > > > > >>>>>>>>>>   
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>If you are using MyFaces, you would have to resort to the
> > > > > >>>>>>>>>web-facesconfig 1.0 or 1.1 (a DTD).  You can reference the 
> > > > > >>>>>>>>>MyFaces
> > > > > >>>>>>>>>examples for proper faces-config definitions:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> > > > >>>>>>>>>"-//Sun Microsystems, Inc.//DTD JavaServer 
> > > > > >>>>>>>>> > > > >>>>>>>>>Faces Config 1.0//EN"
> > > > > >>>>>>>>>"http://java.sun.com/dtd/web-facesconfig_1_0.dtd";>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>....
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>>I'm working with the facelets-0.8.0 and the latest nightly 
> > > > > >>>>>>>>>>build of myfaces
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>Also in eclipse there is an error in my faces-config.xml 
> > > > > >>>>>>>>>>about
> > > > > >>>>>>>>>>'com.sun.facelets.FaceletViewHandler is not a subtype of
> > > > > >>>>>>>>>>javax.faces.event.ActionListener'
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>I'm assuming that's bogus?
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>Yeah, that's bogus.
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>If you have any other questions, just let me know!
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>-- Jacob
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>>Any help would be much appreciated.
> > > > > >>>>>>>>>>                            Thanks,
> > > > > >>>>>>>>>>                               Galen
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>---------------------------------------------------------------------
> > > > > >>>>>>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>>
> > > > > >>>>>>>>>--
> > > > > >>>>>>>>>Jacob Hookom - Minneapolis
> > > > > >>>>>>>>>--------------------------
> > > > > >>>>>>>>>http://hookom.blogspot.com
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>---------------------------------------------------------------------
> > > > > >>>>>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>---------------------------------------------------------------------
> > > > > >>>>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>--
> > > > > >>>>>>>Jacob Hookom - Minneapolis
> > > > > >>>>>>>--------------------------
> > > > > >>>>>>>http://hookom.blogspot.com
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>---------------------------------------------------------------------
> > > > > >>>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>---------------------------------------------------------------------
> > > > > >>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>--
> > > > > >>>>>Jacob Hookom - Minneapolis
> > > > > >>>>>--------------------------
> > > > > >>>>>http://hookom.blogspot.com
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>---------------------------------------------------------------------
> > > > > >>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>---------------------------------------------------------------------
> > > > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>--
> > > > > >>Jacob Hookom - Minneapolis
> > > > > >>--------------------------
> > > > > >>http://hookom.blogspot.com
> > > > > >>
> > > > > >>
> > > > > >>---------------------------------------------------------------------
> > > > > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >---------------------------------------------------------------------
> > > > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jacob Hookom - Minneapolis
> > > > > --------------------------
> > > > > http://hookom.blogspot.com
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to