Forums Login/signup

JSF Hello World program not working

+Pie Number of slices to send: Send
My code are:

web.xml


HelloBean.java


index.xhtml


When I press run in netbeans nothing is displayed. I expect the string "Hello Bean!".

Help


+Pie Number of slices to send: Send
I got it working guys.

When creating new web application project, in the wizard check JSF and under JSF Configuration check 'Registered Library'. Previously I checked 'Server Library'.

After that Hello World Web app worked as expected.
+Pie Number of slices to send: Send
Welcome to CodeRanch Won-ki lee.

I hope that you find everyone helpful, welcoming and knowledgeable. There are some members of this community who are very well versed in Java and Java related technologies so feel free to stop by and ask questions when you need help.
Or stop by to give some help if you are in the mood. I've found that in answering questions I've become more knowledgeable in that subject area as I'm forced to really think about what each line of code is doing and why.

won-ki lee wrote:I got it working guys.


That's great news. It's always rewarding when one is able to fix a problem that they've been dealing with for a number of hours.
+Pie Number of slices to send: Send
For your information here's the screenshot



Have to check Registered Libraries.

reply
reply
This thread has been viewed 2382 times.
Similar Threads
doesn't show up bean's attributes in .xhtml
GET request generated by <h:link> in JSF is not updating Bean properties
Error with JBoss and JSF(My Page does not work)
No nothing works
JSF2 Error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 28, 2025 03:16:55.