Once the user successful login to the system, the system will redirect the user to the homepage. Now my problem is, if the user clicks on the view account page without login
Placing the below syntax in web.xml should work:
com.sun.faces.writeStateAtFormEnd false