/**
  * Simulates an save button
  * Show the form content
  */
 public function onSave($param)
 {
     $data = $this->form->getData();
     // optional parameter: active record class
     // put the data back to the form
     $this->form->setData($data);
     try {
         // creates the soap client
         $client = new SoapClient(NULL, array('encoding' => 'ISO-8859-1', 'exceptions' => TRUE, 'location' => 'http://localhost/gustavo/4/service/GravarTarefas.php', 'uri' => "http://test-uri/", 'trace' => 1));
         echo $client->setTarefas($data->titulo, $data->descricao, $data->prioridade);
         // show the message
         new TMessage('info', "Tarefa Salva");
     } catch (Exception $e) {
         new TMessage($e->getMessage());
     }
 }