On most pages, I have a log-in panel which is contained in a small div at the top of the page. Earlier, when I didn't use JSF, I set the log-in form's attribute action
to https://....
to submit the username and password securely.
At the moment, when I use the tag <h:form>
, the form is always submitted to the page that the user opened (e.g. if the log-in panel is on index.xhtml page, the form's action will also be index.xhtml). Are there any ways that I can change where the form is submitted to? I tried setting the attribute action
of a commandButton
inside that form to LoginStatus
but the form is still submitted to index.xhtml.
I'd be very grateful if someone could show me how I can achieve the secure log-in using JSF 2.0.