I use Myfaces(myfaces-1.1.1RC3) to build my web application. But I've got some troubles.
There are two pages in my application, and there is a link in pageA which forward to pageB.
I must click the link twice that I could forward to pageB When I back to pageA from pageB using IE's Back button .
But It's not happened in "Sun JSF Reference Implementation".
somebody could help me? thanks a lot.
Below are my codes.
pageA.jsp
###########################
<body>
<f:view>
<h:form>
<h:commandLink value="go pageB" action="">
</h:form>
</f:view>
</body>
pageB.jsp
###########################
<body>
<f:view>
<h:form>
This is my JSF JSP pageB. <br>
</h:form>
</f:view>
</body>
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>
<navigation-rule>
<navigation-case>
<from-outcome>pageB</from-outcome>
<to-view-id>/pageB.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>pageA</from-outcome>
<to-view-id>/pageA.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
--
///
(. .)
-----ooO--(_)--Ooo-----
联系方式:
MSN:chencao0524@hotmail.com
QQ:5027277
广州神码网络科技有限公司
http://www.magiccode.com.cn
六岁就很酷
- Why I must click twice? 六岁就很酷
- Re: Why I must click twice? Martin Marinschek

