title: Different rules for the same view-id PrettyFaces
body: <p>I have a jsf page which receive between 2 and 6 parameters, I would like to make this url look better, so I started to use pretty faces. When I create the rule for 2 parameters, everything works perfectly, but when I create the second rule, the pages also works, the url is correctly like I wish but I receive error messages in the Eclipse Console.
  I think it's because I'm trying to create a rule for the same view-id... is that possible?</p>
  
  <p>pretty-config:</p>
  
  <pre><code>  &lt;url-mapping id="departamento"&gt;
     &lt;pattern value="/#{codDep}/#{departamento} " /&gt;
     &lt;view-id value="/departamento.jsf" /&gt;
    &lt;/url-mapping&gt;
  
   &lt;url-mapping parentId="departamento" id="sessao"&gt;
    &lt;pattern value="/#{codSec}/#{secao}" /&gt;
    &lt;view-id value="/departamento.jsf" /&gt;
   &lt;/url-mapping&gt;
  </code></pre>
  
  <p>Console Error:</p>
  
  <pre><code>java.lang.NumberFormatException: For input string: "javax.faces.resource"
  at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
  at java.lang.Integer.parseInt(Integer.java:492)
  at java.lang.Integer.parseInt(Integer.java:527)
  at project.Controller.inicializar(Controller.java:82)
  </code></pre>
  
  <p>Controller method:</p>
  
  <pre><code> public void inicializar(ComponentSystemEvent event)
  {
  FacesContext context = FacesContext.getCurrentInstance();
  if (!context.isPostback())
  {
  
      departamento = new Departamento(Integer.parseInt(codigoDepartamento), descricaoDepartamento, null, null);
      }
    }
  </code></pre>
  
  <p>The problem is that It shouldn't pass this parameter "javax.faces.resource"
  and sometimes "css", which I don't even know where it comes from.</p>