简体   繁体   English

RichFaces 4.2使用h:commandLink转发到新页面

[英]RichFaces 4.2 Forwarding to a new page with h:commandLink

With RichFaces 3.3.3 I was able to use the below code: 通过RichFaces 3.3.3,我可以使用以下代码:

<h:commandLink action="UPLOAD_PAGE">Upload Document</h:commandLink>

The commandLink would take the user to the requested page. commandLink会将用户带到请求的页面。 However, this code is no longer working in RichFaces 4.2.1, when I click it, it simply stays on the current page. 但是,此代码在RichFaces 4.2.1中不再起作用,当我单击它时,它仅停留在当前页面上。 It blinks the screen for a split second as if it was doing something. 屏幕闪烁一秒钟,就好像它在做什么一样。 I see no errors in the logs, or anything, which makes it incredibly hard to debug. 我在日志中看不到任何错误,或其他任何东西,这使得调试变得异常困难。 Does anybody have any information regarding this? 有人对此有任何信息吗?

have by any chance forgot that navigation rule in your faces-config.xml ? 有没有机会忘记您的faces-config.xml中的导航规则? and any way you can replace the UPLOAD_PAGE with you page name like action="page2" 以及以任何方式将UPLOAD_PAGE替换为您的页面名称,例如action="page2"

look at this answer if you want to redirect 如果要重定向,请查看此答案

How can i redirect in JSF 2.0 我如何在JSF 2.0中重定向

And also read this : 还请阅读以下内容:

Implicit Navigation in JSF 2.0 JSF 2.0中的隐式导航

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM