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

OutputLink not rendering as link

I have a puzzling problem where an outputlink is not rendering as a hyperlink to an VF page and nothing happens when I click on it, even though it appears that the html is rendering correctly.


See the outputlink in the VF column "Work" below::


<apex:page controller="MyWorkController">


    <apex:pageblock >

        <apex:pageblocktable value="{!WorkTable}"  var="w">

            <apex:column headervalue="Next Action">

                <apex:outputText value="{0,date,MM'/'dd'/'yyyy}" style="{!w.NextActionStyle}">

                              <apex:param value="{!w.NextActionDate}"/>



             <apex:column headervalue="Due Date">

                <apex:outputText value="{0,date,MM'/'dd'/'yyyy}" style="{!w.DueStyle}">

                              <apex:param value="{!w.DueDate}"/>



            <apex:column headervalue="Type">

                    <apex:outputtext value="{!w.WorkItemType}"/>



            <apex:column headervalue="Work">

                <apex:outputlink value="/{!w.WorkItemID}"/>









Here is the html.


colspan="1"><a href=""></a>

                       Seattle P2 Audit</td>


and this link works if I copy and paste it into the browser (I’m using Firefox)


The VF page cell is just rendered as if it were just an outputtext field.

Any ideas?

Best Answer chosen by Admin (Salesforce Developers) 

Dang! That was it. Thank you!

All Answers


Shouldn't this:

<apex:outputlink value="/{!w.WorkItemID}"/>

 Be more like this:

<apex:outputlink value="/{!w.WorkItemID}">



Dang! That was it. Thank you!

This was selected as the best answer