blob: 65fa2973afbe6cb7592976c9f1bbb48d60cf89b5 [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version
2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by
applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the
License.
-->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
<title>OpenWebBeans :: Examples :: Reservation</title>
<link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/main.css"/>
</head>
<body>
<div id="main">
<h:messages globalOnly="false" showSummary="true" infoClass="message infoMessage" errorClass="message errorMessage"></h:messages>
<div class="caption">
<h:outputText value="User Logged-In Page" />
<div align="center" style="font-size: 14px;color: #203360">
Apache OpenWebBeans Hotel Reservation Sample Using JPA, JSF and OWB;
</div>
</div>
<h:form id="form">
<h:panelGrid columns="2" styleClass="table" cellspacing="2">
<h:outputLabel for="userName">
<h:outputText value="User Name" />
</h:outputLabel>
<h:inputText id="userName" value="#{loginBean.userName}"></h:inputText>
<h:outputLabel for="password">
<h:outputText value="User Password"></h:outputText>
</h:outputLabel>
<h:inputSecret id="password" value="#{loginBean.password}"></h:inputSecret>
<h:panelGroup>
<h:commandButton action="#{loginBean.login}" id="login" value="Login" />
<h:commandButton action="false" value="Clear Form" onclick="document.forms[0].reset();document.getElementById('form:userName').focus();return false;" />
</h:panelGroup>
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/register.jsf">
<h:outputText value="Not a registered! Register here..." >
</h:outputText>
</h:outputLink>
</h:panelGrid>
</h:form>
</div>
</body>
</html>