Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<apex:page showHeader="false" sidebar="false" controller="ContinuationExperimentController">
<apex:form>
<apex:pageBlock title="Experiment with Continuation - Calling Service Async">
<apex:commandButton action="{!callService}" value="Call Service" reRender="response" />
</apex:pageBlock>
<apex:pageBlock title="Response received from Service" id="response">
<pre>{!res}</pre>
</apex:pageBlock>
<apex:pageBlock title="Experiment with Continuation - Calling Long Running Service Async">
<apex:commandButton action="{!callServiceWithLongRunSrv}" value="Call Long Running Service" reRender="responseLongRunServ" />
</apex:pageBlock>
<apex:pageBlock title="Response received from Long Running Service" id="responseLongRunServ">
<pre>{!resLongRunServ}</pre>
</apex:pageBlock>
</apex:form>
<style type="text/css">
pre {
font-size : 1em;
color : green;
}
</style>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.