Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created December 6, 2016 18:29
Show Gist options
  • Save sankaran1984/cdbe896550b86a80450b290f1664b3bb to your computer and use it in GitHub Desktop.
Save sankaran1984/cdbe896550b86a80450b290f1664b3bb to your computer and use it in GitHub Desktop.
Visualforce - Beyond Basics
<apex:page controller="testcls5_06122016">
<apex:form>
<!-- Display Section (Output Area) -->
<apex:outputPanel layout="block">
Today's Quote - {!$Setup.TodaysQuote__c.Quote__c}
</apex:outputPanel>
<hr/><br/>
<!-- User Input Section (Input Area) -->
<apex:inputText value="{!searchStr}" html-placeholder="Type something to search in products"/>
<apex:commandButton value="Search" action="{!doSearch}" reRender="SearchResultArea"/>
<apex:outputPanel id="SearchResultArea">
<apex:outputText value="{!searchResult}"/>
</apex:outputPanel>
<hr/><br/>
<!-- Navigation Section (Redirection Area) -->
<apex:outputPanel layout="block">
<apex:outputText value="Menu" style="font-weight:bold;"/>
<apex:panelGrid columns="1">
<apex:outputLink value="https://www.google.com" target="_blank">
Google
</apex:outputLink>
<apex:outputLink value="https://www.wikipedia.com" target="_blank">
Wikipedia
</apex:outputLink>
</apex:panelGrid>
</apex:outputPanel>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment