2

我需要在保存页面时在我的 VF 页面上重新呈现命令按钮。

现在,我的 VF 页面上有 3 个按钮,保存、测试、取消。

我希望当用户打开这个 VF 页面时,在按钮单击联系人对象时,在这个 Vf 页面上,最初用户应该只看到保存和取消按钮。一旦用户单击 Save 按钮,就会出现 Test 按钮。

任何想法如何做到这一点?保存和取消按钮具有标准的 Salesforce 保存和取消功能。

4

1 回答 1

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");
}
于 2012-08-22T17:41:19.890 回答