You need to sign in to do that
Don't have an account?
Lisa Kitto 7
Standard List Controller TrailHead Errors
I keep getting errors related to this challenge. It wants you to use the apex:repeat component but that does not produce an <li> HTML tag. So I used dataList which does, but then it says that is not a apex:reat component. SO I used both and now it says the <li> tag is not being used but when I inspect element I can see it there. What's the deal?
<apex:page standardController="Account" recordSetVar="accounts">
<apex:pageBlock title="Accounts">
<apex:dataList value="{!accounts}" var="a">
<apex:outputLink title="Account links" value="https://na31.salesforce.com/{!a.id}">
<apex:outputText value="{!a.Name}"/> <br/>
<apex:repeat value="{!a.contacts}" var="c">
{!c.FirstName}
</apex:repeat>
</apex:outputLink>
</apex:dataList>
</apex:pageBlock>
</apex:page>
<apex:page standardController="Account" recordSetVar="accounts">
<apex:pageBlock title="Accounts">
<apex:dataList value="{!accounts}" var="a">
<apex:outputLink title="Account links" value="https://na31.salesforce.com/{!a.id}">
<apex:outputText value="{!a.Name}"/> <br/>
<apex:repeat value="{!a.contacts}" var="c">
{!c.FirstName}
</apex:repeat>
</apex:outputLink>
</apex:dataList>
</apex:pageBlock>
</apex:page>
Thanks
Amit Chaudhary
All Answers
Thanks
Amit Chaudhary
Thanks
<apex:outputLink id="theLink" value="{!$Site.Domain}/{!a.Id}">{!a.Name}</apex:outputLink>
Is this incorrect to implement it like this?