Skip to content

Instantly share code, notes, and snippets.

@suddeb
Created May 11, 2018 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suddeb/594ae98597b58b6bb31f56ff07b3a02b to your computer and use it in GitHub Desktop.
Save suddeb/594ae98597b58b6bb31f56ff07b3a02b to your computer and use it in GitHub Desktop.
<apex:page showHeader="false" sidebar="false" controller="ContinuationExperimentController">
<apex:form>
<apex:pageBlock title="Experiment with Continuation Object - 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 Object - 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