• jason roy 29
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I am new to Salesforce and I want to display two columns of a list of custom objects inside an <apex:page>. I did it using the <apex:pageBlockTable> and it worked fine. In these two columns, one of them is a url. I want to go to that url when i click on that item inside the pageBlockTable. So, used this code to achieve that:
<apex:pageBlockTable value="{!sentResources}" var="ca">
     <apex:column headerValue="Name" value="{!ca.Name}" />
     <apex:column headerValue="Url">
          <apex:outputlink value="/{!ca.ResourceUrl__c}">{!ca.Title__c}</apex:outputlink>
     </apex:column>
</apex:pageBlockTable>

But, this code is not working. The page keeps reloading when I click on the Url. So, anyone please provide a solution to this. 
Thnaks in advance.