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
Agent Comms 7Agent Comms 7 

how to disable CommandLink

Need some help with the Command Link. I know there's no attribute as "Disable" for <apex:commandLink >, like we do have for <apex:commandButton> . But as per the requirement, i want to have the link disabled for a particular page. Can this be achived??
my code-
<apex:commandButton value="Previous" action="{!Setcon.Previous}" disabled="{!NOT(Setcon.hasPrevious)}" reRender="myform" />
<apex:commandButton value="Next" action="{!Setcon.Next}" disabled="{!NOT(Setcon.hasNext)}" reRender="myform" />
how i will use commandLink ?
Vishwajeet kumarVishwajeet kumar
Use <apex:outputLink> and Command link.
Display output link with disable = true, when their is need to be disabled other wise display command link.