Good day everyone, i have a problem with the navigation and primefaces mobile.
i set up an action in the view like this:
Code: Select all
<pm:commandButton value="Ingresar" swatch="b" action="#{logueo.validarLogueo}" ajax="false" />
this is the code in the managed bean:
Code: Select all
public String validarLogueo(){
return "pages/seguridad/welcome.xhtml";
}
welcome.xhtml is a completely different page. When i click on the commandbutton it redirects me to the new page but its calling the method in the managed bean
twice. it's doing two times the logic and redirecting two times to the same page.
so anyone knows what am i doing wrong?