【发布时间】:2012-06-22 09:54:10
【问题描述】:
这是我使用的代码:
request.jsf
<h:form>
<!-- form inputs ... -->
<h:commandButton id="btnStart" value="START" action="#{bean.handleForm}">
<f:ajax execute="@form" render="message" />
</h:commandButton>
</h:form>
当我单击btnStart 按钮时,我的bean 提交并正确处理了表单。不幸的是,浏览器 url 栏仍然显示 http://myhost.com/request.jsf 而内容显示的是 #{bean.handleForm} 返回的结果。
如何正确更新网址栏?
【问题讨论】:
标签: jsf