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
Neel Shah 12Neel Shah 12 

Trailhead Creating and using Custom Controllers Challenge Issue is not resolving

Hello All,
I have written the following code but it still gives me error. 
May i know the mistake i am doing and how can i rectify ?
Error: 
The outputLink component on the 'NewCaseList' page isn't binding to the ID of a case.

Code: 
VF Code: 
 
<apex:page controller="NewCaseListController">
  <apex:pageBlock title="New Case List" id="case_list" >
      <apex:pageBlockTable value="{!NewCases}" var="ct">
          
         <apex:column headervalue="Case Link"><apex:outputLink value="/{!ct.id}">{!ct.id}</apex:outputLink>
       </apex:column>
          <apex:column value="{!ct.CaseNumber}">  
          
          </apex:column>
          <apex:column value="{!ct.Status}"/> 
         
  <apex:repeat var="case" value="{!NewCases}">
    </apex:repeat>
          
          </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>


Controller:
public class NewCaseListController {
    List<Case> results = new List<case>(); 
    public List<Case> getNewCases()

     {
        results =[SELECT ID, CaseNumber, status FROM Case where status='New' LIMIT 10 ];

       return results;

    }
}


Output :
User-added image

Thanks in advance. 
VinayVinay (Salesforce Developers) 
Please note that Questions about how to pass Trailhead challenges are not on topic, because these challenges are intended to be independent demonstrations of your abilities.

Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.

Please close the thread by selected as Best Answer so that we can keep our community clean

Thanks,