myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Sowah <eso...@gmail.com>
Subject Please help: FF vs IE issue
Date Tue, 08 Sep 2009 14:10:38 GMT
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>
================================================



*
*

Mime
View raw message