Skip to content

Instantly share code, notes, and snippets.

@junojisan
Created July 7, 2014 09:30
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 junojisan/db90edfbe2fd59d8a1e1 to your computer and use it in GitHub Desktop.
Save junojisan/db90edfbe2fd59d8a1e1 to your computer and use it in GitHub Desktop.
<apex:page showHeader="false" sidebar="false" controller="OAuthCallbackController">
<apex:pageBlock title="SalesforceだけでOAuthを試してみる">
<apex:pageMessages />
<apex:outputLabel value="Result:" />
<br/>
<textarea rows="10" cols="100">{!resBody}</textarea>
</apex:pageBlock>
<apex:form id="fm">
<apex:outputPanel rendered="{!NOT(ISNULL(resBody))}">
<apex:pageBlock >
<apex:commandButton action="{!getAccounts}" value="取引先を取得" reRender="fm" />
<apex:pageBlockTable id="pbtAccounts"
value="{!accounts}" var="acc" rendered="{!NOT(ISNULL(accounts))}">
<apex:column value="{!acc.Id}" />
<apex:column value="{!acc.Name}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:outputPanel>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment