On 4/10/06, FSchaare <[EMAIL PROTECTED]> wrote:
Oops ... my bad. ExternalContext defines the following method:
public Object getSession(boolean create);
but this isn't patterned like a JavaBeans property getter, so it will not be recognized by the EL processing. I was assuming ExternalContext also had a getSession() that takes no arguments, like it does for request, response, and context.
That being said, it would be pretty easy to create a custom property resolver that solved this ... but it is not possible out of the box.
Craig
Hi folks,
thank you very much for your replies. I tried this one
#{facesContext.externalContext.session}
and also this one:
#{facesContext.externalContext.session.id
which gives me an ugly exception:
javax.faces.FacesException: Bean:
org.apache.myfaces.context.servlet.ServletExternalContextImpl, property:
session
Oops ... my bad. ExternalContext defines the following method:
public Object getSession(boolean create);
but this isn't patterned like a JavaBeans property getter, so it will not be recognized by the EL processing. I was assuming ExternalContext also had a getSession() that takes no arguments, like it does for request, response, and context.
That being said, it would be pretty easy to create a custom property resolver that solved this ... but it is not possible out of the box.
Craig

