title: ZendFramework 2.0.0rc3 form
body: <p>I try to validate with the form but I cant get error messages.</p>
  
  <p>//this is my code:</p>
  
  <pre><code>$form = new TestForm();
  $form-&gt;setInputFilter(new TestFilter());
  $data = array('id'=&gt;'','email'=&gt;'myemail@myemail.com');
  $form-&gt;setData($data);
  
  if($form-&gt;isValid()){
      echo 'ok';
  } else {
  echo 'not ok &lt;br/&gt;';
  $messagesForm = $form-&gt;getMessages();
  $filter=$form-&gt;getInputFilter();
  $messagesFilter=$filter-&gt;getMessages();
  var_dump($messagesForm);
  var_dump($messagesFilter);
  }
  
  /////////////////
  Output
  not ok
  //messagesForm
  
      array
       empty
  //MessagesFilter
      array
      'id' =&gt; 
      array
        'isEmpty' =&gt; string 'Value is required and can't be empty' (length=36)
  </code></pre>
  
  <p>_    </p>
  
  <p>How is possible? The filter is ok, but I can't get error messages from the form
  Could be a bug or I made something wrong?</p>
  
  <p>FULL code:</p>
  
  <p>TestFilter:
  _    </p>
  
  <pre><code>&lt;?php
  namespace mvc\filter;  
  use Zend\InputFilter\InputFilter;  
  use Zend\InputFilter\Factory as InputFactory;  
  
  class TestFilter extends InputFilter  
  {  
          public function __construct()  
          {  
              $factory = new InputFactory();  
              $this-&gt;add($factory-&gt;createInput(array('name'=&gt;'id','required'=&gt;true)));  
              $this-&gt;add($factory-&gt;createInput(array('name'=&gt;'email','required'=&gt;true)));  
          }  
  }  
  ?&gt;
  </code></pre>
  
  <p>_    </p>
  
  <p>TestForm
  _<br>
      
      namespace mvc\form;<br>
      use Zend\InputFilter\Factory;<br>
      use Zend\Form\Element;<br>
      use Zend\Form\Form;  </p>
  
  <pre><code>class TestForm extends Form  
  {  
  public function prepareElements()  
  {  
      $this-&gt;add(array(  
          'name' =&gt; 'id',  
          'attributes' =&gt; array(  
              'type'  =&gt; 'text',  
              'label' =&gt; 'Your name',  
          ),  
      ));  
  
          $this-&gt;add(array(  
          'name' =&gt; 'email',  
          'attributes' =&gt; array(  
              'type'  =&gt; 'email',  
              'label' =&gt; 'Your email address',  
              ),  
          ));  
      }  
  }  
  ?&gt;
  </code></pre>
  
  <p>_    </p>