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 ?)

Reply via email to