Created
May 11, 2018 04:05
-
-
Save suddeb/594ae98597b58b6bb31f56ff07b3a02b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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