在jsf中返回命令按钮 [英] back commandbutton in jsf

查看:188
本文介绍了在jsf中返回命令按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将后退按钮实现为一个普遍适用的命令按钮?使用后退按钮我不是指浏览器按钮,而是位于页面某处的按钮。并不总是可以使用Post-redirect-get模式。

how would one implement a back-button as a commandbutton that works universally? with back button i don't mean the browser-button, but rather a button that sits somewhere on the page. it is not always possible to use the Post-redirect-get pattern.

传递按钮应该指向的每一个信息是非常不可靠的。

its quite impractial to pass around the information on every single where the button should point to.

是否可能有导航规则的保留关键字指向应用的上一个导航规则?

is there maybe a reserved keyword for a navigation rule that points to the last navigation rule applied?

推荐答案

我使用 h:commandLink ,其属性为 onclick =history.go(-1)在这种情况下。它普遍适用。

I use a h:commandLink with attribute onclick="history.go(-1)" in this case. It works universally.

这篇关于在jsf中返回命令按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆