The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by sathishgopal gopal:
I need Faces Context object in my Servlet. The actual job of creating the FacesContext is done by the FacesServlet.
My Applet opens a connection to talk to the Servlet. This Servlet fetchs the backing bean object from the HttpSession. Then i invoke a method in the reterived Backing bean object. I need to bind FacesContext object for this request. I copied the code from FacesServlet (for creating FacesContext via FacesContextFactory) to my Servlet, it works. There must be some other way to do this.
Originally posted by Ulf Dittmer:
The obvious way to solve this is to make the backing bean independent of the view technology. That's how you design backing beans to begin with.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by sathishgopal gopal:
Yes i need it because my backing bean gets some Value from the HttpSession like..
FacesContext.getCurrentInstance()
.getExternalContext().getSessionMap();