【发布时间】:2013-10-21 06:14:10
【问题描述】:
<html xmlns:h="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:o="http://omnifaces.org/ui">
<o:form includeViewParams="true">
<h:commandButton value="Home" action="/index?faces-redirect=true"/>
<p:dataTable>
</p:dataTable>
</o:form>
h:commandButton 在 o:form 下不起作用。当我单击它时,它仍然在同一页面上。但是当我更改为 h:form 时,它可以工作。不过,我需要为 includeViewParams 使用 o:form。有什么办法可以解决这个问题吗?
【问题讨论】:
-
你能把整个代码发给你吗?
-
我正在另一台无法访问互联网的计算机上进行操作。发布所有内容将很困难。但主要是它只是一个带有延迟加载和主页按钮的简单数据表。
-
那里的
o是什么?像xmlns:h="http://java.sun.com/jsf/html"h用于 jsf html 标签 -
哦。很抱歉错过了这一点。我正在使用全向面。
标签: jsf primefaces omnifaces