Forums Register Login

control does not goes to another page

+Pie Number of slices to send: Send
hello all,
i am new to JSF today i tried sample JSF tutorial but enable to find out why transfer does not goes to another page.

there are two jsp pages

1)display.jsp


2] index.jsp

3] IndexBean.java


+Pie Number of slices to send: Send
please help...me
+Pie Number of slices to send: Send
Hello,


now i have added method getName() in managed bean and called it from action but there is exception method not found.

do not know what is the problem....?
below is code snippet of bean class-------
+Pie Number of slices to send: Send
Patience, grasshopper. We're volunteers here, and we visit when we can. We don't get paid to sit and answer questions as fast as they come in.

First of all, I want to caution you about using capital letters. In Java, package names should not begin with capital letters (in fact, I don't recommend capital letters at all in package names). Similarly, the name of a bean instance should not begin with a capital letter. In Java, an initial capital letter indicates a class name, not an object name or package name. Failure to observe this convention may cause program development tools to object, and in a few cases, some very puzzling runtime failures.

The reason you're not advancing to the new page is because your action processor didn't tell JSF to navigate to the new page. JSF works on a series of post-back conversations with a page, not a single page visit. That's how it manages things like validation and correction of inputs. So the action processor is required to explicitly tell JSF when to leave the current page and where to go from there.

Actually, you didn't even provide an action processor, so nothing could be indicated at all.

What you need is something like this:


Plus this:


Actually, my action processors mostly return strings like "success", "failure", "forbidden", and stuff like that, but you'd coded your faces-config to look for "result", so that's what I returned.
+Pie Number of slices to send: Send
Dear Tim,

thanks for reply...


still does not working....
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1854 times.
Similar Threads
navigation rules are not working...
inputText tag not working properly
Navigation problem
Navigation does not work
Action method is never entered/executed. Please help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:30:11.