Apex code 在Visualforce页面上,输入字段在更改后恢复为原始值

Apex code 在Visualforce页面上,输入字段在更改后恢复为原始值,apex-code,visualforce,Apex Code,Visualforce,我在visualforce页面上有一个顶点列表。当我点击save按钮时,列表是进入save功能时实际列表的两倍。导致列表中的对象重复。奇怪的是,在save函数中显示了27行,但返回了54行。这是我的保存代码: <apex:commandButton id="saveButtons" value="Save" rerender="saveButtons" status="loading" > <apex:actionSupport even

我在visualforce页面上有一个顶点列表。当我点击save按钮时,列表是进入save功能时实际列表的两倍。导致列表中的对象重复。奇怪的是,在save函数中显示了27行,但返回了54行。这是我的保存代码:

        <apex:commandButton id="saveButtons" value="Save" rerender="saveButtons" status="loading" >
            <apex:actionSupport event="onclick" action="{!saveStaffing}" rerender="saveButtons, error" status="loading">
            </apex:actionSupport>
        </apex:commandButton>


以前有人看到过这种行为吗?

有一个onchange函数,它重新提交了pageblocktable,导致在单击“保存”之前刷新值。

发布您的控制器