你好我與JS2 + primefaces在這裏工作是我的代碼阻止UIPrimeFaces:阻止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>
這裏板是儀表盤的ID 主要是形式ID
也實現了與thread.sleep爲5秒的管理bean
開始時,你最好格式化你的代碼......它不是那麼可讀...... – Daniel
你可以用窗體和儀表板更新你的例子嗎? – Darka
爲什麼你有'disabled =「true」'? – Daniel