function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Max SmithMax Smith 

Testing a VisualForce Component

Hi All,

I've created a custom visualforce component and controller for use in a custom visualforce email template.  The component code is below:
<apex:component access="global" controller="hostedFeeInfoController">    
    <apex:attribute type="String" name="oppoID" assignTo="{!oppID}" description="current opportunity ID"/> 
    <apex:attribute type="Decimal" name="contractTerm" assignTo="{!term}" description="length of contract term"/>
    
	<p class="sectionHeaders">Hosted Fee Information</p>  
    <apex:dataTable id="hostedFeeTable" value="{!yt}" var="yearT">
        <apex:repeat var="total" value="{!yearT.totals}">
            <apex:column headerValue="test">
            	<apex:outputText value="{!total}"></apex:outputText>
        	</apex:column> 
        </apex:repeat>
    </apex:dataTable>
</apex:component>

The component is called with the exact same parameters between the email body and also in a PDF attachment.  Surprisingly, the "Hosted Fee Information" in the <p> tag displays in the PDF but not the email body.  The actual data table does not display in either.  My question is, how do I go about debugging this?  Is there some log I can look at?  I can't find an error message, the table just simply doesn't appear

Thanks,
Max