【发布时间】:2013-01-07 21:47:48
【问题描述】:
您好,我正在使用 js2+ primefaces 这是我阻止 UI 的代码
<table>
<h:form id="main">
<tr>
<p:growl --->
---
<p:dashboard id="board" model="#{adminD.userProfl}" disabled="true">
<p:panel id="adminActivity" header="Admin Activities">
<table id="hor-minimalist-b" >
<tbody>
<tr>
<td>
<h:commandLink action="#{photoValidation.ooDirectory()}" name="submit" type="submit" id="convertPhotos">
<h:outputText value="Convert All Photos in Databse "/>
<f:ajax execute=":main:adminActivity" render=":main:growl"/>
</h:commandLink>
</td>
</tr>
</tbody>
</table>
</p:panel>
</p:dashboard>
<p:blockUI block=":main:board" trigger=":main:convertPhotos">
LOADING<br />
<p:graphicImage value="#{facesContext.externalContext.requestContextPath}/resources/images/ajax-loader.gif"/>
</p:blockUI>
这里 board 是仪表板 ID main 是表单 ID
还实现了 thread.sleep 为 5 秒的托管 bean
【问题讨论】:
-
首先,你最好正确地格式化你的代码...它不是真的可读...
-
你能用表单和仪表板更新你的例子吗?
-
你为什么有
disabled="true"? -
禁用面板重新排序
-
看起来不错。如果你删除
怎么办?
标签: jsf-2 primefaces