I am working with Geronimo version 2M6 and I am trying to use jsf, but its not
working. It is a one page website I am trying to test, but to no avail. Here
is my plan file.
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
<environment>
<moduleId>
<groupId>default</groupId>
<artifactId>apache</artifactId>
<version>1.0</version>
<type>car</type>
</moduleId>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<type>jar</type>
</dependency>
</dependencies>
</environment>
<context-root>/apache</context-root>
</web-app>
It deploys fine, but the jsf stuff isn't looked at at all. When I view the
webpage its blank. When I right-click and do view source I have this
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert 3</title>
</head>
<body>
<f:view>
<h:form>
<h:selectOneMenu id="subscriptions">
<f:selectItem id="item1" itemLabel="News" itemValue="1" />
<f:selectItem id="item2" itemLabel="Sports" itemValue="2" />
<f:selectItem id="item3" itemLabel="Music" itemValue="3" />
<f:selectItem id="item4" itemLabel="Java" itemValue="4" />
<f:selectItem id="item5" itemLabel="Web" itemValue="5" />
</h:selectOneMenu>
<h:commandButton></h:commandButton>
</h:form>
</f:view>
</body>
</html>
HELP!?!?!?!?