+ 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.