myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Generic JSF question
Date Thu, 19 Jul 2007 19:42:00 GMT
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 <dcypher67@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 <andrew.rw.robinson@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?
> >
>
>

Mime
View raw message