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
NareshKrishnaNareshKrishna 

Issue with commandLink

Hi All,

 

My Page has following:

1. Left side: there are 2 command links.

2. Right side content is: several visualforce components in between commandLink.

   <apex:commandLink style="text-decoration:none" action="{!showPopup}" >   
      <apex:outputPanel layout="block">
        <apex:image url="{!imageUrl}"/>
      </apex:outputPanel>
      <apex:outputPanel layout="block">
      {!name}
      </apex:outputPanel>                                                                          
    </apex:commandLink>

 

On load by default, commandlink1 is clicked and related content is showed on right side.

When i clicked on left side command link, then right side content is converting as like below:

   <apex:commandLink style="text-decoration:none" action="{!showPopup}" >  
    </apex:commandLink>

      <apex:outputPanel layout="block">
        <apex:image url="{!imageUrl}"/>
      </apex:outputPanel>
      <apex:outputPanel layout="block">
      {!name}
      </apex:outputPanel>                                                                         

and resulting no commandlink to click.

 

Could anyone help me with this.

 

Thanks.

Navatar_DbSupNavatar_DbSup

Hi,

 

I think there is a problem in the rendering of the page .you can pass the apex: component id in the left command link side which apex component you want to display on the left side command link.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.