I have 10 jsf pages in my application and the managed beans for them are some in session scope and some in request scope.All pages are functioning fine except the the first page which is in session scope.after key in the input if i hit enter key it is not invoking the backing bean's action method. But it is working fine for other pages even though they are in session scope. If at all by pressing tab and focus on the submit button and hit enter or just mouse click on submit button is working fine . Why is this failing only when hit enter this case? Am i missing any thing? Any help is greatly appriciated.
Thanks Ven
David Karr
Greenhorn
Joined: Jan 06, 2008
Posts: 11
posted
0
I would suggest two things:
While developing an app, always implement a debugging LifeCycleListener that just prints out each phase. If you see it go directly from the validation phase to the response phase, then you know it failed validation somewhere. You should also have a "messages" element on your page, and probably on all of your fields, so you can see if something failed validation.
Venkata
Ranch Hand
Joined: Sep 07, 2007
Posts: 37
posted
0
Hi David,
Thanks for the reply. I haave a phase listerner to watch the life cycle of JSF and also i am doing someother stuff in this. I ran the program in debug mode too.If hit enter it directly going to phase listener than action method. But in other pages it is working fine.Any ideas?
Thanks Ven
Bob Good
Ranch Hand
Joined: Jan 09, 2008
Posts: 86
posted
0
Try listening and catching the enter key as shown here: