Im implementing a login in a JSF application and have a problem with the redirection.
I want to make available the login form in every xhtml in the app, but after th
As far as i am concern there is 2 ways for this purpose.
?faces-redirect=true to return value of action.First solution.
Bienvenido #{loginBean.nombreUsuario}!!
the update attribute will update the components.
Second solution
Add ?faces-redirect=true to your return value of action method for a real refresh
public String login(){
currentUser = gu.login(usuario, password);
return "login?faces-redirect=true";
}