I have just started
working with JSF and am trying to debug my simple application (based upon the
myfaces blank).
The problem I am
trying to debug is that the commandButton does not seem to be firing.
the page
is:
<%@ taglib
uri="http://java.sun.com/jsf/html"
prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<body>
<f:view>
<t:jscookMenu layout="hbr" theme="ThemeOffice">
<t:navigationMenuItem id="nav_1" itemLabel="ok" action="" />
<t:navigationMenuItem id="nav_2" itemLabel="fail" action="" />
</t:jscookMenu>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<body>
<f:view>
<t:jscookMenu layout="hbr" theme="ThemeOffice">
<t:navigationMenuItem id="nav_1" itemLabel="ok" action="" />
<t:navigationMenuItem id="nav_2" itemLabel="fail" action="" />
</t:jscookMenu>
<h:form id="form">
<h:panelGrid id="grid" columns="2">
<h:outputText id="output1" value="Please enter your name"/>
<h:inputText id="input1" value="#{loginBacking.name}" required="true"/>
<h:commandButton id="button1" value="press me" action=""/>
<h:commandButton id="button2" value="Fail me" action=""/>
<h:message id="message1" for=""/>
</h:panelGrid>
</h:form>
<h:messages
showDetail="true" globalOnly="false" showSummary="true"
/>
</f:view>
</body>
</body>
clicking on any of
the buttons does nothing but re-display the helloWorld page that I start with.
The validation event (required=true on the input1 field) works fine.
Any suggestions on
how to debug this is greatly appreciated. I am using a 1.1.4 myfaces snapshot
and 1.1.3 Tomahawk snapshot. These were pulled down to get past the dummy menu
form problem.
I appreciate any
guidance or suggestions.
Thank you.

