Created
May 11, 2018 04:22
-
-
Save suddeb/2bb152a876b3ea1a9a7775aafa24f953 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 - 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