• Jonathan Ng
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Vision Critical

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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>