title: JSF 2.0: How to submit a form securely on a HTTP page
body: <p>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 <code>action</code> to <code>https://....</code> to submit the username and password securely.</p>
  
  <p>At the moment, when I use the tag <code>&lt;h:form&gt;</code>, 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 <code>action</code> of a <code>commandButton</code> inside that form to <code>LoginStatus</code> but the form is still submitted to index.xhtml. </p>
  
  <p>I'd be very grateful if someone could show me how I can achieve the secure log-in using JSF 2.0. </p>