title: "Save", "Cancel" etc. button not working in Joomla 3 after migrating a component
body: <p>I am migrating a component made for 2.5 to Joomla 3.4. Everything is working fine now, except one thing: the Joomla toolbar buttons do not react at all in backend. What could be wrong there? It worked fine with Joomla 2.5. </p>
  
  <pre><code>    // Set the toolbar
      $this-&gt;addToolBar();
  
      // Display the template
      parent::display($tpl);
  }
  
  /**
   * Setting the toolbar
   */
  
  protected function addToolBar() 
      {
              JFactory::getApplication()-&gt;input-&gt;set('hidemainmenu', true);
              $isNew = ($this-&gt;item-&gt;id == 0);
  
              JToolBarHelper::title($isNew ? JText::_('New note') :   JText::_('Edit note'));
              JToolBarHelper::save('guestbook.save');
              JToolBarHelper::cancel('guestbook.cancel', $isNew ? 'JTOOLBAR_CANCEL' : 'JTOOLBAR_CLOSE');
      }
  </code></pre>