| 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: 32
|
|
|
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
OCPJP 7 | OCAJP 7
|
 |
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
|
 |
 |
|
|
subject: everything I put between <h:xxx> is invisible :0
|
|
|