JSF Condition in oncomplete not executed

352 Views Asked by At

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.

0

There are 0 best solutions below