I can achieve the same by pointing a link directly to JSF url.. but as soon as the JSF page will load i need to redirect it to some other jsf page.. is it possible to redirect from one jsf page to some other page without any jsf action. Might be using some event like page load complete or some other way? actually i can use
but the problem is now all the session values get cleared.
Yes we have to provide a link on pdf.. and that link is of a servlet and from that servlet it will navigate to application. I am able to get an instance of facescontext now by creating a new instance in servlet as below
Tim Holloway wrote:
There is one. It's called FacesServlet. But it doesn't act like it, it actually does it. In fact, it's what creates and destroys the FacesContext for a request.
The real question is: what do you need to do?
I am navigating from application to a pdf page and then from that pdf page on click of a button i need to do some processing and save a facesmessage and then navigate back to application. Everything is done but i am getting nullpointer when i am going to access facesContext to set the message. Any input/Help will be appriciated.
I am facing a problem related to facescontext, I need to access the facesContext in an external servlet, is there some way to achieve this? After some precessing on that Servlet i am navigating to jsf page, and i want jsf page to access the same facesContext.
yes system is launching different browser on click on PDF.
Rather that attempting to put a session ID in the PDF, you should look at putting some sort of information that can be used to reconstruct whatever session context you need when the link/button is clicked.
the session context i want to preserve is user details as the user is logged in and i don't want the system to ask user for logging again. do you have any idea how can we achieve this?
I have a scenario where i am opening a PDF file on click of a link which opens in new window. PDF is dynamically created depending on the link. and on that PDF i have few buttons. On click of these buttons, it opens a new page which navigates to a jsf page but the session is not getting becoming invalid. What should i do? if any of you having any idea then please guide me to solve this.
I hope you all got my problem, if not then please ask me to elaborate more.