[SEAM] ajax:status 與rich:modalPanel怎樣結合?

Mrpublic 2009-07-17
當程序正在處理時,用ajax:status 來給用戶顯示狀態,十分不錯,但一般都是在主頁顯示,現在我想當我開始某個處理時,就彈出一個正在處理的圖片并顯示說:正在處理中。。 于是我想到 用rich:modalPanel,來做這個顯示,
現在我遇到的問題就是怎么把兩者結合起來

<a4j:status>
   <f:facet name="start">
。。。。
   </f:facet>
   <f:facet name="stop">
   </f:facet>
</a4j:status>

怎樣在start中寫腳本語言讓開始處理,就彈出那個rich:modalPanel,謝謝
Mrpublic 2009-07-17
<a4j:status>
   <f:facet name="start"> 
Richfaces.showModalPanel('process');
   </f:facet>
   <f:facet name="stop">
   </f:facet>
</a4j:status>
怎么不行呀?
tyshan 2009-07-18
hi, Mrpublic

try this

<a4j:status onstart="????.show()" onstop="????.hide()"/>

<rich:modalPanel id="any id"/>


Good luck


Tyshan
Mrpublic 2009-07-20
tyshan 写道
hi, Mrpublic

try this

<a4j:status onstart="????.show()" onstop="????.hide()"/>

<rich:modalPanel id="any id"/>


Good luck


Tyshan


To Tyshan:
   thanks, it works!!

<a4j:status onstart="#{rich:component('id')}.show()" onstop="#{rich:component('id')}.hide()"/>
spiderss 2009-07-20
demo里有
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?tab=editDataTable&cid=1995864
Mrpublic 2009-07-20
spiderss 写道
demo里有
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?tab=editDataTable&cid=1995864


謝謝。。。。
Mrpublic 2009-07-21
彈出多個rich:modelPanel時,怎么讓最后彈出的rich:pannel出現在頁面最上層呢??
Global site tag (gtag.js) - Google Analytics