You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by CD <dc...@gmail.com> on 2007/07/19 21:02:49 UTC
Generic JSF question
At what point in the lifecycle is a bean declared as "session" scoped get
stored in the session?
Re: Generic JSF question
Posted by Andrew Robinson <an...@gmail.com>.
Access the bean through a faces context in the servlet:
http://wiki.apache.org/myfaces/AccessFacesContextFromServlet
Then you can use
FacesContext.getApplication().createValueBinding(String).getValue(FacesContext);
Where the "#{beanName}" is string parameter.
On 7/19/07, CD <dc...@gmail.com> wrote:
> As I would assume.
>
> The issue I am seeing in this particular instance is this (I'll try to
> shorten the description as details really aren't necessary for now):
>
> View/Code description: We have a page with links that are generated from
> the rows in a bound datatable (initially populated in the constructor of the
> bean). The links point to a servlet which, in turn, acquires the instance
> of the bean from the session by name.
>
> Issue: When clicking on one of these links for the first time when the
> session is created, the servlet returns nothing (servlet used to stream a
> pdf from a backend source FYI). This behavior repeats ad infinitum until a
> submit() is performed on the form. Once this submit is performed, clicking
> on the links yields a result as expected (PDF shown).
>
> Any thoughts?
>
>
>
>
> On 7/19/07, Andrew Robinson <an...@gmail.com> wrote:
> > When it is created by the variable resolver (first time it is accessed)
> >
> > On 7/19/07, CD < dcypher67@gmail.com> wrote:
> > > At what point in the lifecycle is a bean declared as "session" scoped
> get
> > > stored in the session?
> >
>
>
Re: Generic JSF question
Posted by CD <dc...@gmail.com>.
As I would assume.
The issue I am seeing in this particular instance is this (I'll try to
shorten the description as details really aren't necessary for now):
View/Code description: We have a page with links that are generated from
the rows in a bound datatable (initially populated in the constructor of the
bean). The links point to a servlet which, in turn, acquires the instance
of the bean from the session by name.
Issue: When clicking on one of these links for the first time when the
session is created, the servlet returns nothing (servlet used to stream a
pdf from a backend source FYI). This behavior repeats ad infinitum until a
submit() is performed on the form. Once this submit is performed, clicking
on the links yields a result as expected (PDF shown).
Any thoughts?
On 7/19/07, Andrew Robinson <an...@gmail.com> wrote:
>
> When it is created by the variable resolver (first time it is accessed)
>
> On 7/19/07, CD <dc...@gmail.com> wrote:
> > At what point in the lifecycle is a bean declared as "session" scoped
> get
> > stored in the session?
>
Re: Generic JSF question
Posted by Andrew Robinson <an...@gmail.com>.
When it is created by the variable resolver (first time it is accessed)
On 7/19/07, CD <dc...@gmail.com> wrote:
> At what point in the lifecycle is a bean declared as "session" scoped get
> stored in the session?