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
Lukesh KarmoreLukesh Karmore 

why it is necessary to use apex param, if not use then what happened

  <apex:commandlink value="Edit" rerender="thePB" rendered="{!NOT(a.isEdit)}" action="{!editmethid}">
          <apex:param name="rowNumber" value="{!a.rowNo}" assignTo="{!rowIndex}"/>
      </apex:commandLink>

in above condition we use apex param it is necessary to use it with apex:commandLink  always.
if i remove this apex:param  then this commandLink  Edit not work  why it is..
Thank You.
AnudeepAnudeep (Salesforce Developers) 
It is not required to use apex param with commandlink 

The <apex:param> component can only be a child of the following components so this criterion is met in your case

• <apex:actionFunction>
• <apex:actionSupport>
• <apex:commandLink>
• <apex:outputLink>
• <apex:outputText>
• <flow:interview>

I recommend trying with a simple example taken from this post to see if it works fine when you remove the apex:param tag
 
<apex:page standardController="Contact" extensions="CommandLinkParamController">
    <apex:form >
        <apex:commandLink value="Process Nickname" action="{!processLinkClick}">
            <apex:param name="nickName"
                value="{!contact.firstname}"
                assignTo="{!nickName}"/>
        </apex:commandLink>
    </apex:form>
</apex:page>