Skip to content

Instantly share code, notes, and snippets.

@mangar
Created August 30, 2009 21:57
Show Gist options
  • Save mangar/178168 to your computer and use it in GitHub Desktop.
Save mangar/178168 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<ui:composition template="/WEB-INF/layout/layout.xhtml">
<ui:define name="title">Login</ui:define>
<ui:define name="content">
<f:subview id="_subview_login">
<h:form>
Username: <h:inputText
value="#{loginHandler.user.username}" />
<br />
Password: <h:inputSecret
value="#{loginHandler.user.password}" />
<br />
<h:commandButton value="Login"
action="#{loginHandler.doAuthentication}" />
</h:form>
</f:subview>
</ui:define>
</ui:composition>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment