I have below code that should be executed after actionListener. But it seems that even though isValid in my backing bean is set to true, goToHomePage() was not execute.
oncomplete="if (#{user.isValid()}) { goToHomePage(); };"
Can somebody explain to me why? And what's the correct way to do this.