title: primefaces commandbutton ajax submit works as a non-ajax submit
body: <p>I'm using primefaces 3.5 and I want to update de value of an object using p:commandButton with ajax, but when I click on the p:commandButton the form submits entirely as a non-ajax submit. I tried with immediate=true, ajax="true" (but I read that this option is the default) partial-submit="true" but nothing, the button refresh all the page instead of just the asignarUA component. </p>
  
  <p>Note: this is a liferay (6.2 CE) portlet. </p>
  
  <p>This is part of the code:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"  
  xmlns:h="http://java.sun.com/jsf/html"  
  xmlns:f="http://java.sun.com/jsf/core"  
  xmlns:p="http://primefaces.org/ui"&gt;
  &lt;h:head&gt;&lt;/h:head&gt;
  &lt;h:body&gt;
  &lt;h:form&gt;
      &lt;p:commandButton onclick="asignarUADlg.show()" update=":asignarUA" title="Asignar" value="Asignar"&gt;
      &lt;f:setPropertyActionListener value="#{solicitud }" target="#{mailboxView.solicitud}"/&gt;
      &lt;/p:commandButton&gt;                                                
  &lt;/h:form&gt;
  
  
  &lt;p:dialog id="asignarUA" widgetVar="asignarUADlg" modal="true" header="Asignar Unidades Administrativas" width="530" showEffect="fade" hideEffect="fade"&gt;
      &lt;h:form enctype="multipart/form-data"&gt;
          &lt;h:outputLabel for="dependencia" value="Dependencia: " /&gt;
          &lt;h:outputText value="#{mailboxView.solicitud.nombreDependencia}" rendered="#{not empty mailboxView.solicitud}" /&gt;
          &lt;p:separator /&gt;
  
          &lt;p:commandButton value="Enviar" ajax="false" actionListener="#{mailboxView.asignar}" update=":messages2"/&gt;
          &lt;p:commandButton value="Cancelar" onclick="asignarUADlg.hide()" type="button"/&gt;
      &lt;/h:form&gt;
  &lt;/p:dialog&gt;
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>