I created a homepage component of type HTML Area and pasted the code as below.
Customized the Homepage layout to include the above component. However when I navigate to the Homepage I could only see an iframe with the Visualforce source displayed.
I had followed the below steps:
- Created a new "Home Page Component" of type "HTML Area"
- Before pasting the HTML code, made sure "Show HTML" is selected in the editor.
- Pasted the above code
- Unchecked "Show HTML" checkbox, however I could only see the Source code.
What could be wrong?
<apex:page sidebar="false" showHeader="false" standardStyleSheets="false" controller="CasesSidebarController">
<html>
<head>
<style> body { background-color: #CEEDF7; font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
</style>
</head>
<body>
<apex:dataTable value="{!caseCountByStatus}" var="state">
<apex:column >
<apex:outputText style="font-weight:bold" value="{!state}" />
</apex:column>
<apex:column >
<apex:outputText style="padding-left:10px" value="{!caseCountByStatus[state]}" />
</apex:column>
</apex:dataTable>
</body>
</html>
</apex:page>
<apex:page sidebar="false" showHeader="false" standardStyleSheets="false" controller="CasesSidebarController"> <html> <head> <style> body { background-color: #CEEDF7; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } </style> </head>