• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

JSF Hello World program not working

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
won-ki lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
won-ki lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For your information here's the screenshot



Have to check Registered Libraries.
 
reply
    Bookmark Topic Watch Topic
  • New Topic