This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

everything I put between <h:xxx> is invisible :0

 
roger bumico
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

for some unknown reason everything I put betwen <h:xxx> tags is invisible, however it works fine inside eclipse's graphical preview tool.

here is how it's suposed to work :
first you acces index.html, a simple page with an input box and a submit button
you input your name and press submit, your name is transmitted to a bean then
forwarded to a JSP wich print it saying welcome

however, the submit button and input field are both insivible :/



index.html


web.xml


HelloBean.java


welcome.jsp


and in my pom.xml you can find :
myfaces-api 1.2.2
tomahawk 1.1.9
myfaces-impl 1.2.2
jstl 1.1.2
taglib standard 1.1.2
geronimo_servlet_2.5_spec 1.2
jboss-jsf-api_2.0_spec

any ideas?
thanks =D
 
Pondurai Singh
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF 2.0 hello world example This tutorial show you how to develop a JavaServer Faces (JSF) 2.0 hello world example, shows list of JSF 2.0 dependencies, basic annotations and configurations. mkyong.com/jsf2/jsf-2-0-hello-world-example/
 
roger bumico
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pondurai Singh wrote:JSF 2.0 hello world example This tutorial show you how to develop a JavaServer Faces (JSF) 2.0 hello world example, shows list of JSF 2.0 dependencies, basic annotations and configurations. mkyong.com/jsf2/jsf-2-0-hello-world-example/


thanks =D
but now it says that jsf-impl-2.1.7.jar is rotten :/



Could it be related to my project configuration?

#SOLUTION

dunno why but jsf-impl 2.1.7 is not compatible with tomcat7 I had to downgrade to 2.1.6.
also I still had the same problem, it was because I should have used xhtml instead of html AND
only put one set of
<servlet-mapping>
</servlet-mapping>

here is the working web.xml

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic