Mahendra Pratap

Ranch Hand
+ Follow
since Feb 25, 2008
Mahendra likes ...
Eclipse IDE Spring Java
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mahendra Pratap

Could you please support your question with your code snippet for better understanding.

Does the Managed bean method is getting called or not? If yes then that is the exception you are getting?

If you provide atleast this much information then only someone will be able to help you.
12 years ago
JSF
Hi,

Try giving Id to all components in your view..and check whether is there any commandlink or commandbutton out of form.


Thanks,
Mahendra
13 years ago
JSF
use the below code to fix your problem.




13 years ago
JSF
Problem might be with your

try to debug this.
13 years ago
JSF
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.
13 years ago
JSF
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

13 years ago
JSF

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.
13 years ago
JSF
Can we make a servlet react in a way like it is serving an active JSF request.
13 years ago
JSF
Hi,

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.

Thanks,
Mahendra
13 years ago
JSF
Hi,

I need a disabled list for which the selection also will not change on click.. and scrollbar should be in working condition.
14 years ago
JSF
I have a list box component by h:selectManyListbox i want this to be disable and at the same time the scroller should be working.. any Idea ?

I need this for view purpose..


Thanks in advance!!
14 years ago
JSF
thanks for the reply Tim.

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?
14 years ago
JSF
I have tried appending session Id to the URL but then also i am getting the Logout page..



This is how i used URL rewriting where jsessionId is session Id from JSF managed bean and abcId is some other parameter i am passing..

14 years ago
JSF
Hi all,

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.

Thanks,
Mahendra
14 years ago
JSF
Don't know whether it has been fixed in jsf2 or not but for jsf 1.x you can fix this by using

before </navigation-case> end tag.
14 years ago
JSF