| <!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</title> |
| </head> |
| |
| <body> |
| |
| <div id="container"> |
| <div id="content"> |
| <h:messages globalOnly="false" showSummary="true"></h:messages> |
| |
| <h:form id="form"> |
| |
| <div align="center"> |
| <h3>OpenWebBeans Examples</h3> |
| <span style="color:red;">User name : admin, Password : admin</span> |
| </div> |
| |
| <div align="center" style="border:1px solid black;"> |
| |
| <h:panelGrid columns="2"> |
| |
| <h:outputLabel for="userName"> |
| <h:outputText value="User Name : "></h:outputText> |
| </h:outputLabel> |
| <h:inputText id="userName" value="#{loginBean.userName}"></h:inputText> |
| |
| <h:outputLabel for="password"> |
| <h:outputText value="Password : "></h:outputText> |
| </h:outputLabel> |
| <h:inputSecret id="password" value="#{loginBean.password}"></h:inputSecret> |
| |
| <h:commandButton action="#{loginBean.login}" value="Login"></h:commandButton> |
| <h:commandButton onclick="document.getElementById('form').reset(); return false;" value="Reset"></h:commandButton> |
| |
| </h:panelGrid> |
| </div> |
| </h:form> |
| </div> |
| |
| </div> |
| </body> |
| </html> |