I solved my problem. In my login page I use dialog component. I change for panel component and exceptions lets to occur
Login Page (1st Version)
<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:sec="http://www.springframework.org/security/tags"
template="/resources/template/template.xhtml">
<ui:define name="header"></ui:define>
<ui:define name="menu"></ui:define>
<ui:define name="content">
<h:form id="formLogin" prependId="false">
<p:dialog id="dlgLogin" header="SYSTEM" closable="false" resizable="false" draggable="false" visible="true"
width="480" height="340" position="center" styleClass="dlgNoTitle">
<p:messages id="messages" autoUpdate="true" closable="true" />
<p:graphicImage id="imgLogin" value="/resources/images/login1.jpg"
style=" left: 25px; position: relative; margin-top:10px" />
<p:panel styleClass="pnlNoTitle">
<h:panelGrid columns="2">
<h:outputLabel for="j_username" value="Usuario:"
style="font-weight: bold; color: grey; font-family:arial, sans-serif;"/>
<p:inputText value="#{loginController.user.username}" id="j_username" required="true" label="Usuario" />
<h:outputLabel for="j_password" value="Password:" style="font-weight: bold; color: grey; font-family:arial, sans-serif;"/>
<p:password value="#{loginController.user.password}" id="j_password" required="true" label="Password" />
<p:commandButton id="loginButton" value="Ingresar" icon="ui-icon-key" action="#{loginController.login}" ajax="false"
update="messages"/>
</h:panelGrid>
</p:panel>
</p:dialog>
</h:form>
</ui:define>
</ui:composition>
Login Page (2nd Version)
<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:sec="http://www.springframework.org/security/tags"
template="/resources/template/template.xhtml">
<ui:define name="header"></ui:define>
<ui:define name="menu"></ui:define>
<ui:define name="content">
<div style="vertical-align: middle; position: relative; padding-top: 100px">
<h:form id="formLogin" prependId="false">
<p:panel id="pnlLogin"
style="width: 480px; height: 340px; margin: auto auto auto auto; ">
<p:messages id="messages" autoUpdate="true" closable="true" />
<p:graphicImage id="imgLogin" value="/resources/images/login1.jpg"
style=" left: 25px; position: relative; margin-top:10px" />
<p:panel styleClass="pnlNoTitle">
<div align="center">
<h:panelGrid columns="2">
<h:outputLabel for="j_username" value="Usuario:"
style="font-weight: bold; color: grey; font-family:arial, sans-serif;"/>
<p:inputText value="#{loginController.user.username}" id="j_username" required="true" label="Usuario" />
<h:outputLabel for="j_password" value="Password:" style="font-weight: bold; color: grey; font-family:arial, sans-serif;"/>
<p:password value="#{loginController.user.password}" id="j_password" required="true" label="Password" />
<p:commandButton id="loginButton" value="Ingresar" icon="ui-icon-key" action="#{loginController.login}" ajax="false"
update="messages"/>
</h:panelGrid>
</div>
</p:panel>
</p:panel>
</h:form>
</div>
</ui:define>
</ui:composition>
Now, the question is why this happens with the dialog component :)