This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes everything I put between <h:xxx> is invisible :0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "everything I put between <h:xxx> is invisible :0" Watch "everything I put between <h:xxx> is invisible :0" New topic
Author

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

roger bumico
Greenhorn

Joined: May 02, 2012
Posts: 4
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

Joined: Jun 27, 2011
Posts: 35
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/


Software Developer, Oracle Java Certification Training Labs at EPractize Labs.
roger bumico
Greenhorn

Joined: May 02, 2012
Posts: 4
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: everything I put between <h:xxx> is invisible :0