| <!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 :: Conversation</title> |
| </head> |
| |
| <body> |
| |
| <div id="container"> |
| <div id="content"> |
| <h:messages globalOnly="false" showSummary="true" infoStyle="font-weight:bold;"></h:messages> |
| |
| <h:form> |
| |
| <div style="border:1px solid black;margin: 25px 75px;"> |
| |
| <h:panelGrid columns="2"> |
| |
| <h:outputLabel for="book"> |
| <h:outputText value="Book Name : "></h:outputText> |
| </h:outputLabel> |
| <h:inputText id="book" value="#{shoppingCardBean.book}" required="true" requiredMessage="Please give a book name!"></h:inputText> |
| |
| <h:panelGroup> |
| <h:commandButton action="#{shoppingCardBean.startConversation}" immediate="true" value="Start Conversation"></h:commandButton> |
| <h:commandButton action="#{shoppingCardBean.endConversation}" immediate="true" value="End Conversation"></h:commandButton> |
| <h:commandButton action="toRedirect" immediate="true" value="Redirect"></h:commandButton> |
| </h:panelGroup> |
| |
| <h:commandButton action="#{shoppingCardBean.addNewBook}" value="Add New Book"></h:commandButton> |
| |
| </h:panelGrid> |
| </div> |
| </h:form> |
| </div> |
| |
| </div> |
| </body> |
| </html> |