title: Rendering problems with PrimeFaces + PrimeFaces Mobile + MyFaces ExtVal
body: <p>I am trying to use together the three frameworks: PrimeFaces, PrimeFaces Mobile and MyFaces ExtVal. The library versions are: PF 3.3.1, PF Mobile 0.9.3, MyFaces ExtVal 2.0.5. Consider the following code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"&gt;
      &lt;f:view&gt;
          &lt;h:head&gt;
              &lt;meta charset="UTF-8" /&gt;
              &lt;title&gt;Primefaces Mobile test&lt;/title&gt;
          &lt;/h:head&gt;
          &lt;h:body&gt;
              &lt;h:form&gt;
                  &lt;p:commandButton value="Oi" /&gt;
              &lt;/h:form&gt;
          &lt;/h:body&gt;
      &lt;/f:view&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If the project has only PrimeFaces and Mobile jars, the rendered commandButton is as expected:</p>
  
  <pre><code>&lt;button id="j_idt6:j_idt7" name="j_idt6:j_idt7" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="PrimeFaces.ab({source:'j_idt6:j_idt7'});return false;" type="submit"&gt;&lt;span class="ui-button-text"&gt;Oi&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  
  <p>This is the default PrimeFaces renderer. If i configure f:view with renderKitId as PRIMEFACES_MOBILE, the rendered button is:</p>
  
  <pre><code>&lt;button id="j_idt6:j_idt7" name="j_idt6:j_idt7" type="submit" data-iconpos="left" onclick="PrimeFaces.ab({source:'j_idt6:j_idt7'});return false;"&gt;Oi&lt;/button&gt;
  </code></pre>
  
  <p>It is also OK, as expected. Now, adding MyFaces ExtVal jars, everything breaks and only the PRIMEFACES_MOBILE is the renderer of the components. To test the behavior, i added the jars: myfaces-extval-bean-validation-2.0.5.jar, myfaces-extval-core-2.0.5.jar and myfaces-extval-property-validation-2.0.5.jar. Then i removed the renderKitId, so that the default PrimeFaces library should be used but again the result is:</p>
  
  <pre><code>&lt;button id="j_idt6:j_idt7" name="j_idt6:j_idt7" type="submit" data-iconpos="left" onclick="PrimeFaces.ab({source:'j_idt6:j_idt7'});return false;"&gt;Oi&lt;/button&gt;
  </code></pre>
  
  <p>I tried forcing the renderKitId in f:view to HTML_BASIC, but it keeps rendering the PrimeFaces Mobile version of the commandButton.</p>
  
  <p>So guys, do you have any suggestions? Before the definition of RenderKitId, my system was OK, when i upgraded the libraries i got this error. I posted in <a href="http://forum.primefaces.org/viewtopic.php?f=8&amp;t=19910" rel="nofollow">PrimeFaces forum</a>, but i couldn't see a way to solve, and i can't see why this is happening.</p>