Feel I am missing something obvious...I have a page with a button that calls a web service, then re-renders an output panel to show the results
EDIT - seems to be an issue with PageBlockButtons? Just tried this is a new org and same behavior...
This works fine:
<apex:page id="newMembertoQ" controller="SamplePageController">
<apex:form >
<apex:pageBlock id="newMembertoQPageBlock">
<!-- <apex:pageBlockButtons id="newMembertoQPageBlockButtons"> -->
<apex:commandButton id="newMembertoQPageBlockButtonSubmittoQ2" action="{!submittoQ}" value="Submit to Q No Status"/>
<apex:actionStatus id="submitMembertoQ">
<apex:facet name="start">
<apex:outputPanel >
<apex:image value="/img/loading32.gif" style="height: 15px;"/>
<apex:commandButton value="Creating Q Record..." disabled="true"/>
</apex:outputPanel>
</apex:facet>
<apex:facet name="stop">
<apex:commandButton action="{!submittoQ}" value="Create in Q" status="submitMembertoQ"/>
</apex:facet>
</apex:actionStatus>
<!-- </apex:pageBlockButtons> -->
<apex:outputText value="{!sParams}"></apex:outputText>
</apex:pageBlock>
</apex:form>
</apex:page>
Controller:
public with sharing class SamplePageController {
public Integer sParams {get;set;}
public SamplePageController () {
sParams = 0;
}
public PageReference submittoQ () {
sParams ++;
return null;
}
}
But if you remove the comments to include the pageblockbuttons, the actionstatus version of the button increments the sParams by 2 instead on 1...which I do not understand...!