Skip to content

Instantly share code, notes, and snippets.

@incepttechnologies
Created November 8, 2013 02:12
Show Gist options
  • Save incepttechnologies/7365190 to your computer and use it in GitHub Desktop.
Save incepttechnologies/7365190 to your computer and use it in GitHub Desktop.
login page for secured application
<h:form id="formLogin" prependId="false"
onsubmit="document.getElementById('formLogin').action = 'j_security_check';">
<h:panelGrid columns="2">
<f:facet name="header">
Login
</f:facet>
<h:outputLabel for="j_username" value="Username: "/>
<h:inputText id="j_username" required="true" />
<h:outputLabel for="j_password" value="Password: "/>
<h:inputSecret id="j_password" required="true" />
<f:facet name="footer">
<h:commandButton value="Login" type="submit"/>
</f:facet>
</h:panelGrid>
</h:form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment