jsf login times out
问题 Ok simple question. I have a JSF application, containing a login page. The problem is if the user loads the login page, leaves it for a while, then tries to login the session expires and a ViewExpiredException is thrown. I could redirect back to the login when this happens, but that isn't very smooth. How can I allow this flow to properly login without an additional attempt? 回答1: Update As of Mojarra 2.1.19 / 2.2.0 you can now set the transient attribute of the <f:view> to true: <f:view