Kostas,
are you using the CVS based code of MyFaces? I added a *blank* (aka Hello World) for an *easier* start.
If not, I could mail you the WAR for the *blank* Myfaces app.
-Matthias
Kostas Karadamoglou wrote:
Hi all,
I am new to jsf and myfaces implementation. After running the myfaces examples sucessfully with Tomcat 5.5.7, I tried to deploy a simple "hello world" application without any sucess! Do you know what its wrong with my application? Here is the structure of my war file:
*hello.war
index.jsp (the contet of the file is listed below)
/META-INF
/WEB-INF
web.xml (is the same with the web.xml of the myfaces distribution except the decleration of the configuration file)
faces-config.xml (the content of the file is listed below)
/lib
myfaces.jar
myfaces-extensions.jar
myfaces-jsf-api.jar
jstl.jar
jakarta-oro.jar
commons-validator.jar
commons-logging.jar
commons-fileupload-1.0.jar
commons-collections-3.0.jar
commons-codec-1.2.jar (I removed commons-el.jar because the myfaces-example application didn't work properly with this jar)
*faces-config.xml
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config />
*index.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html> <head> <title>Newsletter Subscription</title> </head> <body> <f:view> <h:form> <table> <tr> <td>Email Address:</td> <td> <h:inputText value="test" /> </td> </tr> <tr> <td>Newsletters:</td> <td> <h:selectManyCheckbox value="1"> <f:selectItem itemValue="1" itemLabel="JSF News" /> <f:selectItem itemValue="2" itemLabel="IT Industry News"/> <f:selectItem itemValue="3" itemLabel="Company News"/> </h:selectManyCheckbox> </td> </tr> </table> <h:commandButton value="Save"/> </h:form> </f:view> </body> </html>
PS: Netbeans needs a reference to http://java.sun.com/jsf/html and http://java.sun.com/jsf/core URIs do you know where can I find them (mzybe which jar ?)
-- Matthias WeÃendorf Aechterhoek 18 DE-48282 Emsdetten Germany phone: +49-2572-9170275 cell phone: +49-179-1118979 email: matzew AT apache DOT org url: http://www.wessendorf.net callto://mwessendorf (Skype) icq: 47016183

