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
Ajay Kumar 261Ajay Kumar 261 

Command button not invoking controller method

Hi,

I have strange issue, which I am not able to figure out. 
<div class="modal-footer"> 
                                        
                                        <apex:commandButton styleclass="btn btn-primary" value="Update Records" action="{!updateEngagements}" rerender="datePanelContainer"   />
                                        
                                    </div>
                                    <apex:outputPanel id="datePanelContainer">
                                    <table class="table table-hover">
                                                  <thead>
                                                    <tr>
                                                      <th>Student Engagement</th>
                                                      <th>Learning Community</th>
                                                      <!--<th>New LC</th>-->
                                                      <th>Current Track</th>
                                                      <th>New Track</th>
                                                    </tr>
                                                  </thead>
                                                  <tbody>
                                                     <apex:repeat value="{!wrapList}" var="e">
                                                        <tr>
                                                            <td>{!e.eng.name}</td>                                                            
                                                            <td>{!e.eng.Learning_Community__r.Name}</td>  
                                                            <!--
                                                            <td> 
                                                                <apex:selectList id="Lcs" value="{!e.selectedLC}" size="1">
                                                                    <apex:selectOptions value="{!e.selectedCLC}"/>
                                                                </apex:selectList>
                                                            </td>
                                                            -->
                                                           
                                                            <td>{!e.eng.Learning_Community__r.Track__c}</td>  
                                                            <td> 
                                                                <apex:selectList id="countries" value="{!e.selectedNTrack}" size="1">
                                                                    <apex:selectOptions value="{!e.selectedTrack}"/>
                                                                </apex:selectList>
                                                           </td>                         
                                                        </tr>
                                                    </apex:repeat>                                             
                                                  </tbody>
                                                </table>                                       
                                  </apex:outputPanel>

The highihlighted and bold <td> tag is causing some issue. If I enable this tag my command button is not invoking the controller method. It is not even showing debug statements.

What could be the reason? 

Any help appreciated.

Reagrds,
Ajay
Best Answer chosen by Ajay Kumar 261
Ajay Kumar 261Ajay Kumar 261
Got the issue in Command button: 
Removed this line.
rerender="datePanelContainer" 

All Answers

Ajay Kumar 261Ajay Kumar 261
this is the tag which is causing the issue: Can any one help me please?
<!--
23                                                            <td>
24                                                                <apex:selectList id="Lcs"value="{!e.selectedLC}" size="1">
25                                                                    <apex:selectOptionsvalue="{!e.selectedCLC}"/>
26                                                                </apex:selectList>
27                                                            </td>
28                                                            --></b></i>

Regards,
Ajay
Ajay Kumar 261Ajay Kumar 261
Got the issue in Command button: 
Removed this line.
rerender="datePanelContainer" 
This was selected as the best answer