You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Srinivas V <vu...@gmail.com> on 2007/02/23 11:52:32 UTC

When does FacesContext.getCurrentInstance().getExternalContext().getSessionMap() become null?

 I am getting FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
as null when i am trying to retrieve it from a helper POJO (Value Object).
But I do not get this error in the other POJO.
Both the POJOs are similar.
why does this happen?

Please help me.
Regards
srinivas

Re: When does FacesContext.getCurrentInstance().getExternalContext().getSessionMap() become null?

Posted by Matthias Wessendorf <ma...@apache.org>.
FacesContext.getCurrentInstance() return null,
when being outside of the scope of the faces engine.

for instance, inside a filter

On 2/23/07, Srinivas V <vu...@gmail.com> wrote:
>  I am getting
> FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
> as null when i am trying to retrieve it from a helper POJO (Value Object).
> But I do not get this error in the other POJO.
> Both the POJOs are similar.
> why does this happen?
>
> Please help me.
> Regards
> srinivas


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com