title: Validate a textField with GXT
body: <p>I have to check some textField with the following regex:  </p>
  
  <pre><code>[\sa-zA-Z.'-àáâãäåçèéêëìíîïðòóôõöùúûüýÿ]+
  </code></pre>
  
  <p>It works with regex checkers but it doesn't work with my GWT/GXT application. I use the function above in a class that extends AbstractValidator.  </p>
  
  <pre><code>public static native boolean isValidName(String name) /*-{
      var pattern =  /[\sa-zA-Z.\'-àáâãäåçèéêëìíîïðòóôõöùúûüýÿ]+/;
      return pattern.test(name);
  }-*/;
  </code></pre>
  
  <p>I use GXT2 and GWT 1.6.4.</p>