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
yuyinchayuyincha 

how to set a commandLink display?

a apex markup in page : <apex:commandLink id="next1" action="{!next}">Next</apex:commandlink>

 

and i want to make the "commandLink" display, how is the apex code in controller???

 

help me!!!..

hisrinuhisrinu

Hi,

 

 You can use the following syntax

 

<apex:commandLink value="Next" action="{!next}"/>

 

In your controller you need to write the following method.

 

Public PageReference next()

{

//Write your logic here

}

yuyinchayuyincha

oh. thanks for you help.

 

May be I do not have a clear description of.

 

 What i mean is that , use a apex expression to make the "commandlink" unvisible in page.