Simon,
didn't find this one and i will try this
thanks
Simon Kitching a écrit :
Olivier Ziller wrote:
hello,
i need my jsf based portlet to generate dynamic pdf content and it
seems that i need a servlet to do this.
i was wondering if it possible to have my servlet share the same
facescontext than my portlet?
in order to do this i have imagined to create a jsf servlet that
would handle all *.download requests (and my portlet to handle all
*.faces requests)
is it possible to have both a jsf portlet and a jsf servlet running
in the same time in a web application? and sharing the same
facescontext?
What do you mean by "the same facescontext"?
A FacesContext instance is only request-scoped; it is created when a
request arrives and destroyed when the request ends. It is therefore
not possible to share this.
Perhaps what you mean is for the *.download servlet to be able to
access session-scoped managed beans? If so, this can be done. This
wiki page has info on this:
http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls
Or maybe you mean something else?
Regards,
Simon