我想通過單擊子窗口上的按鈕來刷新父窗口的部分(不是整個頁面)。visualforce重新渲染子頁面的父頁表
它就像一個頁面上的action =「action name」rerender =「id」一樣。
但是從子窗口,有可能重新顯示父頁面部分(在我的情況下它是表)?
請幫忙。
謝謝!
我想通過單擊子窗口上的按鈕來刷新父窗口的部分(不是整個頁面)。visualforce重新渲染子頁面的父頁表
它就像一個頁面上的action =「action name」rerender =「id」一樣。
但是從子窗口,有可能重新顯示父頁面部分(在我的情況下它是表)?
請幫忙。
謝謝!
是的。簡單地說:
rerender="ioOfParentComponent"
然而,這隻適用於相同的頁面。如果你在談論IFrames,那麼這是行不通的。但在同一個<apex:page > </apex:page>
區塊內,這將起作用。
如果要刷新來自兒童的父窗口,孩子是一個彈出式窗口,這兩個網頁自定義Visualforce頁面 - 做每javascript的回調:
父窗口:
<apex:actionFunction name="callBackFunction" reRender="refreshMe" action=""/>
<apex:outputPanel id="refreshMe">
Some text here...
</apex:outputPanel>
子窗口(彈出):
<apex:commandButton onClick="javascript:parent.window.opener.callBackFunction(); return false;" value="Refresh parent" />
你的問題很不清楚。如果您使用翻譯應用程序來幫助傳達您的問題,這可能會有所幫助。 – Conner 2012-07-18 05:20:06