Skip to content

Instantly share code, notes, and snippets.

@yusuke6197
Created December 2, 2013 15:17
Show Gist options
  • Save yusuke6197/7751018 to your computer and use it in GitHub Desktop.
Save yusuke6197/7751018 to your computer and use it in GitHub Desktop.
<apex:page Controller="LoadingSampleCon" sidebar="false">
<apex:form>
<apex:pageBlock title="検索結果" id="searchResult">
<apex:pageBlockButtons location="top">
<apex:commandButton value="検索" action="{!search}" id="searchButton" onclick="doSearch();" rerender="searchResult" />
<apex:actionFunction name="doSearch" status="loading" action="{!search}" rerender="searchResult" />
<apex:actionStatus id="loading">
<apex:facet name="start">
<apex:image url="/img/loading.gif" style="margin-left:1em;" />
</apex:facet>
</apex:actionStatus>
</apex:pageBlockButtons>
<apex:pageblockTable value="{!AccountList}" var="row" rendered="{!AccountList.size!=0}">
<apex:column value="{!row.Name}" />
</apex:pageblockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment