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
anu112anu112 

How to display commandbutton below the which commandlink i clicked

<apex:page controller="accountnames">
 <apex:form >
 <apex:pageBlock >
     <apex:pageBlockTable value="{!alist}" var="a"  >
     <apex:column >
     <apex:commandLink value="{!a.name}"  >    
     <apex:param name="aid" value="{!a.id}" / >
     <apex:commandButton value="SAVE"  />
     </apex:commandLink>
     </apex:column>
     </apex:pageBlockTable>
  </apex:pageBlock>
 </apex:form>
</apex:page>

Rahul SharmaRahul Sharma

By reading the post I understood that you just need to display a command button below a command link.

If that is the case the, You could do using HTML break statement between them:

<apex:commandLink value="{!a.name}" /> <br/>
<apex:commandButton value="save"/>

 Note that you cannot enclose a button inside a link.

anu112anu112

Hi Rahul, i want the button with in the commandlink , which link i clicked, that link only parialy refresh and display the button.

anu112anu112

anu112 wrote:

Hi Rahul, i want the button with in the commandlink , which link i clicked, that link only parialy refresh and display the button.



I need like this output. below snopshort

Account1

Save->this is the save button when i click the Account link then save button will enable only this commandlink below

Account2

Account3