1
我在p:dialog
的頭一個p:messages
,我想一些secondes(像p:growl
行爲)後,將其隱藏 這裏是:使P的行爲:像在p消息:咆哮(等待薩姆秒和隱藏)
<p:messages id="messages" globalOnly="true" showDetail="true" />
是有可能
謝謝
我在p:dialog
的頭一個p:messages
,我想一些secondes(像p:growl
行爲)後,將其隱藏 這裏是:使P的行爲:像在p消息:咆哮(等待薩姆秒和隱藏)
<p:messages id="messages" globalOnly="true" showDetail="true" />
是有可能
謝謝
您可以使用JavaScript,創建javascript函數和調用 「的onComplete」 功能,例如:
組件:
<p:commandButton oncomplete="testfm()" />
的javascript:
function testfm(){
window.setTimeout(function testfm1(){
$(".ui-message-error").hide();
},5000);
}
你嘗試一些解決方案? – 2013-04-23 14:50:00