title: <apex:commandbutton> not working
body: <p>I am working on  button.</p>
  
  <p>My component code is as follows.</p>
  
  <pre><code>&lt;apex:commandButton action="{!sendAction}" 
  value="SEND" styleClass="Button" rerender="messageId" immediate="true"/&gt;
  
  &lt;apex:outputpanel rendered="{!showmsg}" id="messageId"&gt;
              &lt;apex:outputtext value="{!outputMessage}" style="color:red;font-size:13px;font-weight:bold;"/&gt;
              &lt;br /&gt;    
          &lt;/apex:outputpanel&gt; 
  </code></pre>
  
  <p>My controller code is as follows.</p>
  
  <pre><code>public PageReference sendAction()
  { 
      showmsg=true;                     
      outputMessage='working';             
       return null;                        
   }
  </code></pre>
  
  <p>But my action method sendAction is not getting called. 
  When I open my page containing  in new window , function is getting called. But in same window it is not getting called.</p>
  
  <p>Any help is really appreciate.</p>