2012-08-22 60 views
2

我需要在保存頁面時在我的音頻頁面上重新顯示命令按鈕。重新渲染命令按鈕

現在,我的VF頁面上有3個按鈕,保存,測試,取消。

我希望當用戶打開這個VF頁面時,在按鈕點擊聯繫人對象時,在這個Vf頁面上,用戶最初應該只看到Save CancelCancel按鈕。一旦用戶點擊保存按鈕,就會出現測試按鈕。

任何想法如何做到這一點?保存和取消按鈕具有標準salesforce保存&取消功能。

回答

0

如果你只是想顯示的按鈕,我會用jQuery做到這一點:

<apex:commantButton action="{!save}" id="saveButton" reRender="something" oncomplete="showTest()"/> 

<apex:commantButton action="{!test}" id="testButton" style="display:none;/> 
function showTest(){ 
    jQuery("[id$=testButton]").css("display","block"); 
}