Emmanuel,

verify you jsp page - you placed second h:form component inside another
h:form component, its forbidden and you must have warnings about this in
your web server log.

I also would suggest to use h:panelGrid element instead of HTML table
tags...

Very interestin

2009/9/8 Emmanuel Sowah <[email protected]>

> Hi,
>
> I'm experimenting with JSF 1.2 with 2 simple pages. The edit.jsp contains a
> simple save button that upon click is sent to success.jsp.
> The problem is that in FF 3.5 it works as expected but in IE 7 when I click
> the button I remain on the same page and nothing happens. I have placed a
> breakpoint in the action method in my bean but I can see that the method is
> not even called in IE. Am I doing something wrong?
>
> I'm using the following library and versions:
>
> myfaces-api 1.2.7
> myfaces-impl 1.2.7
> richfaces-api 3.3.1
> richfaces-ui 3.3.1
> richfaces-impl 3.3.1
> tomahawk 1.1.9
>
> The code for edit.jsp:
>
> ======================================================
> <%@ taglib uri="http://richfaces.org/rich"; prefix="rich"%>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>
> <html>
>
> <body>
>
> <f:view>
>     <h:form>
>
>         <div align="center"><rich:spacer width="1" height="50" />
> <rich:panel
>             style="width:600px;">
>             <h:form>
>                 <TABLE>
>
>                     <TR>
>                         <TD><b>Name</b>: <h:outputText value="Pet" /></TD>
>                     </TR>
>                     <TR>
>                         <TD><b>Value</b>: <h:outputText value="Dog" /></TD>
>                     </TR>
>
>                     <TR>
>                         <TD>&nbsp;</TD>
>                     </TR>
>                     <TR>
>                         <TH><h:commandButton value="Save"
>                             action="#{myBean.saveDataItem}" /></TH>
>
>                     </TR>
>                 </TABLE>
>
>
>             </h:form>
>         </rich:panel></div>
>
>     </h:form>
> </f:view>
>
> </body>
> </html>
> =========================================================
>
> The code for the success.jsp page is:
>
> ============================================================
>
> <%@ taglib uri="http://richfaces.org/rich"; prefix="rich"%>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
> <html>
>
> <body>
>
> <f:view>
>     <h:form>
>         <div align="center"><rich:spacer width="1" height="50" />
> <rich:panel
>             style="width:600px;">
>             <h:form>
>                 <TABLE>
>                     <TR>
>
>                         <TD><b>Document id</b>: <h:outputText value="12345"
> /></TD>
>                     </TR>
>
>                 </TABLE>
>
>             </h:form>
>         </rich:panel></div>
>
>     </h:form>
> </f:view>
>
> </body>
> </html>
> ==========================================================
>
> My faces-config.xml is:
> =======================================
> <faces-config>
>     <managed-bean>
>         <managed-bean-name>myBean</managed-bean-name>
>         <managed-bean-class>com.company.beans.MyBean
>         </managed-bean-class>
>         <managed-bean-scope>request</managed-bean-scope>
>     </managed-bean>
>     <navigation-rule>
>         <from-view-id>/edit.jsp</from-view-id>
>         <navigation-case>
>             <from-outcome>list</from-outcome>
>             <to-view-id>/success.jsp</to-view-id>
>         </navigation-case>
>     </navigation-rule>
> </faces-config>
> ================================================
>
>
>
> *
> *

Reply via email to