geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r991501 [3/3] - in /geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test: ./ webbean-jpa-test/ webbean-jpa-test/src/ webbean-jpa-test/src/main/ webbean-jpa-test/src/main/java/ webbean-jpa-test/src/main/java/org/ webbean-jpa-tes...
Date Wed, 01 Sep 2010 11:02:58 GMT
Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/addReservation.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/addReservation.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/addReservation.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/addReservation.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,99 @@
+<!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>
+  
+  	<ui:composition template="/userMenu.xhtml">
+  		  				
+		<ui:define name="caption">
+			<h:outputText value="Add Reservation Page" styleClass="captionTitle" />	
+		</ui:define>
+			
+		<ui:define name="body">
+			
+		<h:form id="form">
+		
+		<h:panelGrid columns="2" styleClass="table" cellspacing="2" cellpadding="5" columnClasses="leftColumns,rightColumns">
+			<h:outputText value="Reservation Date : " />
+			<h:inputText id="col22date" value="#{userReservationBean.reservationDate}">
+			</h:inputText>					
+		</h:panelGrid>
+			
+			
+			<h:dataTable id="dt" cellpadding="5" value="#{userReservationBean.hotels}" binding="#{userReservationBean.model}" var="model" styleClass="table dataTable" rowClasses="oddRow,evenRow">
+				
+				<h:column id="dt1">
+					<f:facet name="header">
+						<h:outputText id="col1" value="Name" />
+					</f:facet>
+					
+					<h:outputText id="col11" value="#{model.name}" />					
+				</h:column>
+				
+				<h:column id="dt2">
+					<f:facet name="header">
+						<h:outputText id="col2" value="Star" />
+					</f:facet>
+					
+					<h:outputText id="col22" value="#{model.star}" />					
+				</h:column>
+				
+				<h:column id="dt5">
+					<h:commandLink action="#{userReservationBean.addReservation}" value="Add Hotel for Reservation" />					
+				</h:column>
+
+			</h:dataTable>	
+			
+			<div class="caption">
+				<h:outputText value="Added Hotels" styleClass="captionTitle" />	
+			</div>
+			
+			<h:panelGrid columns="2" styleClass="table" cellspacing="2" cellpadding="5" columnClasses="leftColumns,rightColumns">
+				
+				<h:outputLabel for="name">
+					<h:outputText value="Name" />
+				</h:outputLabel>
+				
+				<h:selectManyListbox style="width:225px;height:75px;" value="#{userReservationBean.itemSelected}">
+					<f:selectItems value="#{userReservationBean.reservations}"/>
+				</h:selectManyListbox>
+				
+	
+				<h:commandButton id="checkouthotel" action="#{userReservationBean.checkout}" value="Checkout" />
+				
+				<h:panelGroup>
+					<h:commandButton action="#{userReservationBean.delete}" value="Delete" />
+					<h:commandButton action="#{userReservationBean.clear}" value="Cancel" />
+				</h:panelGroup>
+									
+			</h:panelGrid>					
+			
+		</h:form>
+	</ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/adminMenu.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/adminMenu.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/adminMenu.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/adminMenu.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,77 @@
+<!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="logout">
+		
+		<h:outputLink value="#{facesContext.externalContext.requestContextPath}/admin/adminMenu.jsf" style="float:left;">
+			<h:outputText value="Home Page" />
+		</h:outputLink>
+		
+		<h:form style="margin-left:10px;float:left;">
+			<h:commandLink action="#{logoutBean.logout}" value="Logout"/>
+		</h:form>
+	</div>
+
+
+	<div class="caption">
+		<h:outputText value="Welcome, "/>
+		<h:outputText value="#{sessionTracker.user.name} #{sessionTracker.user.surname}" style="color:red;font-weight:bold;"/>
+		
+		<br/>
+		
+		<h:outputText value="Last Login Date : "/>
+		<h:outputText value="#{sessionTracker.user.lastLoginDate}" style="color:red;font-weight:bold;"/>
+		
+		<ul style="display: block;margin-top: 15px;clear: both;">
+			<h:outputLink value="#{facesContext.externalContext.requestContextPath}/defineHotel.jsf" styleClass="menuItem">
+				<h:outputText value="Define New Hotel" />
+			</h:outputLink>
+	
+			<h:outputLink value="#{facesContext.externalContext.requestContextPath}/listHotels.jsf" styleClass="menuItem">
+				<h:outputText value="List Hotels" />
+			</h:outputLink>
+	
+			<h:outputLink value="#{facesContext.externalContext.requestContextPath}/listUsers.jsf" styleClass="menuItem">
+				<h:outputText value="Show User Reservations" />
+			</h:outputLink>			
+		</ul>
+						
+		<ui:insert name="caption"></ui:insert>		
+												
+	</div>		
+				
+		<ui:insert name="body"></ui:insert>		
+		
+</div>		
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/defineHotel.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/defineHotel.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/defineHotel.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/defineHotel.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,80 @@
+<!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>
+  
+  	<ui:composition template="/adminMenu.xhtml">
+  		  				
+		<ui:define name="caption">
+			<h:outputText value="Define New Hotel" styleClass="captionTitle" />	
+		</ui:define>
+			
+		<ui:define name="body">
+		
+			<h:form id="form">
+					
+				<h:panelGrid columns="2" styleClass="table" cellspacing="2" cellpadding="5" columnClasses="leftColumns,rightColumns">
+					
+					<h:outputLabel for="name">
+						<h:outputText value="Name" />
+					</h:outputLabel>
+					
+					<h:inputText value="#{adminBean.name}" id="name" required="true" requiredMessage="Name is required!"/>
+					
+					<h:outputLabel for="star">
+						<h:outputText value="Star" />
+					</h:outputLabel>
+					
+					<h:inputText value="#{adminBean.star}" id="star" required="true" requiredMessage="Star is required!" converterMessage="Star must between [1-5]" validatorMessage="Star must between [1-5]">
+						<f:convertNumber integerOnly="true"/>
+						<f:validateLongRange maximum="5" minimum="1"/>
+					</h:inputText>
+		
+					<h:outputLabel for="city">
+						<h:outputText value="City" />
+					</h:outputLabel>
+					
+					<h:inputText value="#{adminBean.city}" id="city" required="true" requiredMessage="City is required">
+					</h:inputText>
+					
+					<h:outputLabel for="country">
+						<h:outputText value="Country" />
+					</h:outputLabel>
+					
+					<h:inputText value="#{adminBean.country}" id="country" required="true" requiredMessage="Country name is required!">
+					</h:inputText>
+		
+					
+					<h:commandButton id="add" action="#{adminBean.addNewHotel}" value="Add Hotel" />
+					<h:commandButton action="false" value="Clear Form" immediate="true" onclick="document.forms[0].reset();document.getElementById('form:name').focus();return false;" />					
+				
+				</h:panelGrid>
+			</h:form>
+		</ui:define>
+	</ui:composition>
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/index.html?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/index.html (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/index.html Wed Sep  1 11:02:56 2010
@@ -0,0 +1,21 @@
+<html>
+<!--
+	
+	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.
+-->
+<head>
+  <meta http-equiv="Refresh" content="0; URL=login.jsf">
+</head>
+</html>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listHotels.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listHotels.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listHotels.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listHotels.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,115 @@
+<!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>
+  
+  	<ui:composition template="/adminMenu.xhtml">
+  		  				
+		<ui:define name="caption">
+			<h:outputText value="List Hotels" styleClass="captionTitle" />	
+		</ui:define>
+			
+		<ui:define name="body">
+			
+		<h:form id="form">
+			
+			<h:dataTable id="dt" cellpadding="5" value="#{adminListBean.hotels}" binding="#{adminListBean.model}" var="model" styleClass="table dataTable" rowClasses="oddRow,evenRow">
+				
+				<h:column id="dt1">
+					<f:facet name="header">
+						<h:outputText id="col1" value="Name" />
+					</f:facet>
+					
+					<h:outputText id="col11" value="#{model.name}" />					
+				</h:column>
+				
+				<h:column id="dt2">
+					<f:facet name="header">
+						<h:outputText id="col2" value="Star" />
+					</f:facet>
+					
+					<h:outputText id="col22" value="#{model.star}" />					
+				</h:column>
+				
+				<h:column id="dt5">
+					<h:commandLink action="#{adminListBean.getForUpdate}" value="Show Detail" />					
+				</h:column>
+
+				<h:column id="dt6">
+					<h:commandLink id="deleteHotel" action="#{adminListBean.delete}" value="Delete" />
+				</h:column>
+				
+															
+			</h:dataTable>	
+			
+		</h:form>
+			
+			<div class="caption">
+				<h:outputText value="Hotel Details" styleClass="captionTitle" />	
+			</div>
+			
+			<h:form>
+			<h:panelGrid columns="2" styleClass="table" cellspacing="2" cellpadding="5" columnClasses="leftColumns,rightColumns">
+				
+				<h:outputLabel for="name">
+					<h:outputText value="Name" />
+				</h:outputLabel>
+				
+				<h:inputText  value="#{adminListBean.selected.name}" id="name" required="true" requiredMessage="Name is required!"/>
+				
+				<h:outputLabel for="star">
+					<h:outputText value="Star" />
+				</h:outputLabel>
+				
+				<h:inputText  value="#{adminListBean.selected.star}" id="star" required="true" requiredMessage="Star is required!" converterMessage="Star must between [1-5]" validatorMessage="Star must between [1-5]">
+					<f:validateLongRange maximum="5" minimum="1"/>
+				</h:inputText>
+	
+				<h:outputLabel for="city">
+					<h:outputText value="City" id="cityCol" />
+				</h:outputLabel>
+				
+				<h:inputText  value="#{adminListBean.selected.city}" id="city" required="true" requiredMessage="City is required">
+				</h:inputText>
+				
+				<h:outputLabel for="country">
+					<h:outputText id="countryCol" value="Country" />
+				</h:outputLabel>
+				
+				<h:inputText  value="#{adminListBean.selected.country}" id="country" required="true" requiredMessage="Country name is required!">
+				</h:inputText>
+				
+				<f:verbatim></f:verbatim>
+				<h:commandButton action="#{adminListBean.update}" value="Update" />
+					
+			</h:panelGrid>		
+			</h:form>											
+			
+	</ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listReservations.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listReservations.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listReservations.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listReservations.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,93 @@
+<!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>
+  
+  	<ui:composition template="/userMenu.xhtml">
+  		  				
+		<ui:define name="caption">
+			<h:outputText value="List Reservations" styleClass="captionTitle" />	
+		</ui:define>
+			
+		<ui:define name="body">
+			
+		<h:form id="form">
+			
+			<h:dataTable id="dt" cellpadding="5" value="#{listReservationBean.reservations}" binding="#{listReservationBean.model}" var="model" styleClass="table dataTable" rowClasses="oddRow,evenRow">
+				
+				<h:column id="dt1">
+					<f:facet name="header">
+						<h:outputText id="col1" value="Name" />
+					</f:facet>
+					
+					<h:outputText id="col11" value="#{model.hotel.name}" />					
+				</h:column>
+				
+				<h:column id="dt2">
+					<f:facet name="header">
+						<h:outputText id="col2" value="Star" />
+					</f:facet>
+					
+					<h:outputText id="col221" value="#{model.hotel.star}" />					
+				</h:column>
+				
+				<h:column id="dt3">
+					<f:facet name="header">
+						<h:outputText id="col3" value="City" />
+					</f:facet>
+					
+					<h:outputText id="col222" value="#{model.hotel.city}" />					
+				</h:column>
+				
+				<h:column id="dt4">
+					<f:facet name="header">
+						<h:outputText id="col4" value="User Name" />
+					</f:facet>
+					
+					<h:outputText id="col223" value="#{model.hotel.country}" />					
+				</h:column>
+				
+				<h:column id="dt5">
+					<f:facet name="header">
+						<h:outputText id="col5" value="Reservation Date" />
+					</f:facet>
+					
+					<h:outputText id="col224" value="#{model.reservationDate}" />					
+				</h:column>
+	
+				
+				<h:column id="dt7">
+					<h:commandLink id="deleteR" action="#{listReservationBean.delete}" value="Delete Reservation" />
+				</h:column>
+
+			</h:dataTable>		
+									
+		</h:form>
+	</ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listUsers.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listUsers.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listUsers.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/listUsers.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,141 @@
+<!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>
+  
+  	<ui:composition template="/adminMenu.xhtml">
+  		  				
+		<ui:define name="caption">
+			<h:outputText value="List Reservations" styleClass="captionTitle" />	
+		</ui:define>
+			
+		<ui:define name="body">
+			
+		<h:form id="form">
+			
+			<h:dataTable id="dt" cellpadding="5" value="#{adminListUser.users}" binding="#{adminListUser.model}" var="model" styleClass="table dataTable" rowClasses="oddRow,evenRow">
+				
+				<h:column id="dt1">
+					<f:facet name="header">
+						<h:outputText id="col1" value="Name" />
+					</f:facet>
+					
+					<h:outputText id="col11" value="#{model.name}" />					
+				</h:column>
+				
+				<h:column id="dt2">
+					<f:facet name="header">
+						<h:outputText id="col2" value="Surname" />
+					</f:facet>
+					
+					<h:outputText id="col221" value="#{model.surname}" />					
+				</h:column>
+				
+				<h:column id="dt3">
+					<f:facet name="header">
+						<h:outputText id="col3" value="Age" />
+					</f:facet>
+					
+					<h:outputText id="col222" value="#{model.age}" />					
+				</h:column>
+				
+				<h:column id="dt4">
+					<f:facet name="header">
+						<h:outputText id="col4" value="User Name" />
+					</f:facet>
+					
+					<h:outputText id="col223" value="#{model.userName}" />					
+				</h:column>
+				
+				<h:column id="dt5">
+					<f:facet name="header">
+						<h:outputText id="col5" value="Password" />
+					</f:facet>
+					
+					<h:outputText id="col224" value="#{model.password}" />					
+				</h:column>
+	
+				<h:column id="dt6">
+					<f:facet name="header">
+						<h:outputText id="col6" value="Registered Date" />
+					</f:facet>
+					
+					<h:outputText id="col225" value="#{model.registerDate}" />					
+				</h:column>
+				
+				<h:column id="dt7">
+					<h:commandLink action="#{adminListUser.getReservations}" value="Show Reservations" />					
+				</h:column>
+
+			</h:dataTable>	
+			
+			<div class="caption">
+				<h:outputText value="User Reservations" styleClass="captionTitle" />	
+			</div>
+			
+			<h:dataTable id="dt2" cellpadding="5" value="#{adminListUser.hotels}" var="model" styleClass="table dataTable" rowClasses="oddRow,evenRow">
+				
+				<h:column id="dt21">
+					<f:facet name="header">
+						<h:outputText id="col1" value="Name" />
+					</f:facet>
+					
+					<h:outputText id="col111" value="#{model.name}" />					
+				</h:column>
+				
+				<h:column id="dt22">
+					<f:facet name="header">
+						<h:outputText id="col222" value="Star" />
+					</f:facet>
+					
+					<h:outputText id="col322" value="#{model.star}" />					
+				</h:column>
+				
+				<h:column id="dt23">
+					<f:facet name="header">
+						<h:outputText id="col2" value="City" />
+					</f:facet>
+					
+					<h:outputText id="col42" value="#{model.city}" />					
+				</h:column>
+
+				<h:column id="dt24">
+					<f:facet name="header">
+						<h:outputText id="co5l2" value="Country" />
+					</f:facet>
+					
+					<h:outputText id="col622" value="#{model.country}" />					
+				</h:column>
+				
+																			
+			</h:dataTable>	
+									
+		</h:form>
+	</ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/login.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/login.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/login.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/login.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,74 @@
+<!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>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/main.css
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/main.css?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/main.css (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/main.css Wed Sep  1 11:02:56 2010
@@ -0,0 +1,109 @@
+/*
+ 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.  
+*/
+           
+body{
+	
+	font-size: 12px;
+	margin: 0px;
+	padding: 0px;
+	margin: auto;
+	width: 980px;
+}
+
+#main{
+	margin: auto;
+}
+
+.logout{
+	float: right;
+	font-weight: bold;
+	color: black;
+	font-size: 14px;
+}
+
+.caption{
+	padding : 10px;
+	border-bottom: 10px solid black;
+	font-weight: bold;
+	color: gray; 
+	text-align: left;
+}
+
+.captionTitle{
+	color: #880000;
+	font-size: 14px;
+}
+
+.menuItem{
+	padding: 10px;
+	font-weight: bold;	
+	color: #203360;
+	text-decoration: none;
+}
+
+.table{
+	border : 1px solid black;
+	border-collapse: collapse;
+}
+
+.dataTable{
+	
+	margin : 15px 0px;
+}
+
+.oddRow{	
+	border: 1px solid black;
+	background-color: #FFF9D7;
+}
+
+.evenRow{	
+	border: 1px solid black;
+}
+
+
+.leftColumns{
+	text-align: right;
+}
+
+.rightColumns{
+	text-align: left;
+}
+
+
+.message{
+	margin : 10px 10px 10px 25px;
+	padding : 15px;
+	font-size: 12px;
+	font-weight: bold;	
+	display: block;
+	list-style-type: none;
+	list-style-image: none;
+}
+
+.errorMessage{
+	background-color: #FFEBE8;
+	border : 1px solid #DD3C10;	
+	color: black;
+}
+
+.infoMessage{
+	background-color:#FFF9D7;
+	border: 1px solid #E2C822;
+	color: #333333;
+}
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/main.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/main.css
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/main.css
------------------------------------------------------------------------------
    svn:mime-type = text/css

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/register.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/register.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/register.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/register.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,90 @@
+<!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="New User Register" />
+		</div>
+			
+		<h:form id="form">
+				
+			<h:panelGrid columns="2" styleClass="table" cellspacing="2" cellpadding="5" columnClasses="leftColumns,rightColumns">
+				
+				<h:outputLabel for="name">
+					<h:outputText value="Name" />
+				</h:outputLabel>
+				
+				<h:inputText id="name" value="#{register.name}" required="true" requiredMessage="Name is required!"/>
+				
+				<h:outputLabel for="surname">
+					<h:outputText value="Surname" />
+				</h:outputLabel>
+				
+				<h:inputText id="surname" value="#{register.surname}" required="true" requiredMessage="Surname is required!"/>
+
+				<h:outputLabel for="age">
+					<h:outputText value="Age" />
+				</h:outputLabel>
+				
+				<h:inputText value="#{register.age}" id="age" required="true" requiredMessage="Age is required">
+				</h:inputText>
+				
+				<h:outputLabel for="userName">
+					<h:outputText value="User Name" />
+				</h:outputLabel>
+				
+				<h:inputText value="#{register.userName}" id="userName" required="true" requiredMessage="User name is required and minumum 8 characters!">
+					<f:validateLength minimum="8" maximum="50"/>
+				</h:inputText>
+
+				<h:outputLabel for="password">
+					<h:outputText value="Password" />
+				</h:outputLabel>
+				
+				<h:inputSecret value="#{register.password}" id="password" required="true" requiredMessage="Password must be minumum 4 and maximum 8 characters!">
+					<f:validateLength  minimum="4" maximum="20"/>
+				</h:inputSecret>
+
+				<h:outputLabel for="admin">
+					<h:outputText  value="Admin Authorization" />
+				</h:outputLabel>
+				
+				<h:selectBooleanCheckbox id="adminCheckbox" value="#{register.admin}">
+				</h:selectBooleanCheckbox>
+				
+				<h:commandButton id="Register" action="#{register.register}" value="Register" />
+				<h:commandButton id="Clear" action="false" value="Clear Form" immediate="true" onclick="document.forms[0].reset();document.getElementById('form:name').focus();return false;" />
+			
+			</h:panelGrid>
+		</h:form>
+	   </div>
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/updateInfo.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/updateInfo.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/updateInfo.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/updateInfo.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,85 @@
+<!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>
+  
+  	<ui:composition template="/userMenu.xhtml">
+  		  				
+		<ui:define name="caption">
+			<h:outputText value="Update Personal Information" styleClass="captionTitle" />	
+		</ui:define>
+			
+		<ui:define name="body">
+		
+			<h:form id="form">
+					
+			<h:panelGrid columns="2" styleClass="table" cellspacing="2" cellpadding="5" columnClasses="leftColumns,rightColumns">
+				
+				<h:outputLabel for="name">
+					<h:outputText value="Name" />
+				</h:outputLabel>
+				
+				<h:inputText value="#{userUpdateBean.name}" id="name" required="true" requiredMessage="Name is required!"/>
+				
+				<h:outputLabel for="surname">
+					<h:outputText value="Surname" />
+				</h:outputLabel>
+				
+				<h:inputText value="#{userUpdateBean.surname}" id="surname" required="true" requiredMessage="Surname is required!"/>
+
+				<h:outputLabel for="age">
+					<h:outputText value="Age" />
+				</h:outputLabel>
+				
+				<h:inputText value="#{userUpdateBean.age}" id="age" required="true" requiredMessage="Age is required">
+				</h:inputText>
+				
+				<h:outputLabel for="userName">
+					<h:outputText value="User Name" />
+				</h:outputLabel>
+				
+				<h:inputText value="#{userUpdateBean.userName}" id="userName" required="true" requiredMessage="User name is required and minumum 8 characters!">
+					<f:validateLength minimum="8" maximum="50"/>
+				</h:inputText>
+
+				<h:outputLabel for="password">
+					<h:outputText value="Password" />
+				</h:outputLabel>
+				
+				<h:inputSecret value="#{userUpdateBean.password}" id="password" required="true" requiredMessage="Password must be minumum 4 and maximum 8 characters!">
+					<f:validateLength  minimum="4" maximum="20"/>
+				</h:inputSecret>
+
+				
+				<h:commandButton id="updateInfo" action="#{userUpdateBean.update}" value="Update" />
+			
+			</h:panelGrid>
+			</h:form>
+		</ui:define>
+	</ui:composition>
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/userMenu.xhtml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/userMenu.xhtml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/userMenu.xhtml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/main/webapp/userMenu.xhtml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,84 @@
+<!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>
+  
+  <f:view>
+	 <div id="main">		
+	  
+		<h:messages globalOnly="false" showSummary="true" infoClass="message infoMessage" errorClass="message errorMessage"></h:messages>	
+		
+		<div class="logout">
+			
+			<h:outputLink value="#{facesContext.externalContext.requestContextPath}/users/userMenu.jsf" style="float:left;">
+				<h:outputText value="Home Page" />
+			</h:outputLink>
+			
+			<h:form style="margin-left:10px;float:left;">
+				<h:commandLink action="#{logoutBean.logout}" value="Logout"/>
+			</h:form>
+		</div>
+	
+	
+		<div class="caption">
+			<h:outputText value="Welcome, "/>
+			<h:outputText value="#{sessionTracker.user.name} #{sessionTracker.user.surname}" style="color:red;font-weight:bold;"/>
+			
+			<br/>
+			
+			<h:outputText value="Last Login Date : "/>
+			<h:outputText value="#{sessionTracker.user.lastLoginDate}" style="color:red;font-weight:bold;"/>
+			
+			<ul style="display: block;margin-top: 15px;">
+				
+				<h:form style="float:left;">
+					<h:commandLink action="#{userUpdateBean.showInfo}" value="Update Personal Information" styleClass="menuItem">
+					</h:commandLink>
+				</h:form>
+
+				<h:form style="float:left;">
+					<h:commandLink action="#{listReservationBean.showReservations}" value="Show Reservations" styleClass="menuItem">
+					</h:commandLink>
+				</h:form>
+					
+				<h:outputLink value="#{facesContext.externalContext.requestContextPath}/addReservation.jsf" styleClass="menuItem">
+					<h:outputText value="Add Reservations" />
+				</h:outputLink>
+		
+		
+			</ul>
+							
+			<ui:insert name="caption"></ui:insert>		
+													
+		</div>		
+					
+			<ui:insert name="body"></ui:insert>		
+			
+	</div>	
+	</f:view>	
+</body>
+</html>
\ No newline at end of file

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/java/org/apache/webbeans/sample/reservation/test/ReservationTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/java/org/apache/webbeans/sample/reservation/test/ReservationTest.java?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/java/org/apache/webbeans/sample/reservation/test/ReservationTest.java (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/java/org/apache/webbeans/sample/reservation/test/ReservationTest.java Wed Sep  1 11:02:56 2010
@@ -0,0 +1,259 @@
+/*
+ * 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.
+ */
+
+import org.testng.Assert;
+import org.testng.annotations.Test;
+import org.apache.geronimo.testsupport.SeleniumTestSupport;
+
+public class ReservationTest extends SeleniumTestSupport {
+	// If all the admin information are null,then it will give the suggestion
+	// message
+	@Test
+	public void testRequiredMessage() {
+		selenium.open("/webbean-jpa-test/login.jsf");
+		selenium.click("link=Not a registered! Register here...");
+		selenium.waitForPageToLoad("30000");
+		selenium.click("form:Register");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"Name is required!");
+		Assert.assertEquals(selenium
+				.getText("xpath=/html/body/div/ul/li[2]"),
+				"Surname is required!");
+		Assert.assertEquals(selenium
+				.getText("xpath=/html/body/div/ul/li[3]"),
+				"Age is required");
+		Assert.assertEquals(selenium
+				.getText("xpath=/html/body/div/ul/li[4]"),
+				"User name is required and minumum 8 characters!");
+		Assert.assertEquals(selenium
+				.getText("xpath=/html/body/div/ul/li[5]"),
+				"Password must be minumum 4 and maximum 8 characters!");
+	}
+
+	// Test register as an administrator
+	@Test(dependsOnMethods = { "testRequiredMessage" })
+	public void testRegisterAdmin() {
+		selenium.open("/webbean-jpa-test/login.jsf");
+		selenium.click("link=Not a registered! Register here...");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("form:name", "gero");
+		selenium.type("form:surname", "nimo");
+		selenium.type("form:age", "1");
+		selenium.type("form:userName", "geronimo1");
+		selenium.type("form:password", "passw0rd");
+		selenium.click("form:adminCheckbox");
+		selenium.click("form:Register");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"User with name : geronimo1 is registered successfully.");
+	}
+
+	// test login as an admin
+	@Test(dependsOnMethods = { "testRegisterAdmin" })
+	public void testLogin() {
+		selenium.open("/webbean-jpa-test/login.jsf");
+		selenium.type("form:userName", "geronimo1");
+		selenium.type("form:password", "passw0rdd");
+		selenium.click("form:login");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+		        selenium.getText("xpath=/html/body/div/ul/li"),
+						"Login failed!,User name or password is not correct. Try again!");
+		selenium.type("form:userName", "geronimo1");
+		selenium.type("form:password", "passw0rd");
+		selenium.click("form:login");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertTrue(selenium.getText("xpath=/html/body/div/div[2]").startsWith("Welcome, gero nimo"));
+	}
+
+	// The administrator creates HotelA,HotelB,HotelC
+	@Test(dependsOnMethods = { "testLogin" })
+	public void testDefineNewHotel() {
+		selenium.click("link=Define New Hotel");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("form:name", "HotelA");
+		selenium.type("form:star", "3");
+		selenium.type("form:city", "NewYork");
+		selenium.type("form:country", "USA");
+		selenium.click("form:add");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"Hotel 'HotelA' is successfully created");
+		selenium.type("form:name", "HotelB");
+		selenium.type("form:star", "4");
+		selenium.type("form:city", "ShangHai");
+		selenium.type("form:country", "China");
+		selenium.click("form:add");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"Hotel 'HotelB' is successfully created");
+		selenium.type("form:name", "HotelC");
+		selenium.type("form:star", "5");
+		selenium.type("form:city", "London");
+		selenium.type("form:country", "England");
+		selenium.click("form:add");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"Hotel 'HotelC' is successfully created");
+	}
+
+	@Test(dependsOnMethods = { "testDefineNewHotel" })
+	public void testListHotels() {
+		selenium.click("link=List Hotels");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(selenium
+				.getText("xpath=//*[@id=\"form:dt:0:col11\"]"), "HotelA");
+		Assert.assertEquals(selenium
+				.getText("xpath=//*[@id=\"form:dt:1:col11\"]"), "HotelB");
+		Assert.assertEquals(selenium
+				.getText("xpath=//*[@id=\"form:dt:2:col11\"]"), "HotelC");
+
+	}
+
+
+	// The administrator deletes information about HotelB
+	@Test(dependsOnMethods = { "testListHotels" })
+	public void testDeleteHotel() {
+		selenium.click("form:dt:0:deleteHotel");
+		selenium.waitForPageToLoad("30000");
+		//Assert.assertEquals(selenium.getText("xpath=//*[@id=\"form:dt:1:col11\"]"), "HotelC");
+		Assert.assertEquals(selenium.getText("xpath=/html/body/div/ul/li"),"Hotel with name HotelA is succesfully deleted.");
+	}
+
+	// The administrator logs out
+	@Test(dependsOnMethods = { "testDeleteHotel" })
+	public void testAdminLogOut() {
+		selenium.click("link=Logout");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"You have successfully logged out!");
+	}
+
+	// Register as a customer
+	@Test(dependsOnMethods = { "testAdminLogOut" })
+	public void testCustomerRegister() {
+		selenium.click("link=Not a registered! Register here...");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("form:name", "Britney");
+		selenium.type("form:surname", "Spears");
+		selenium.type("form:age", "1");
+		selenium.type("form:userName", "brightday");
+		selenium.type("form:password", "passw0rd");
+		selenium.click("form:Register");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"User with name : brightday is registered successfully.");
+	}
+
+	// Login as a customer
+	@Test(dependsOnMethods = { "testCustomerRegister" })
+	public void testCustomerLogin() {
+		selenium.type("form:userName", "brightday");
+		selenium.type("form:password", "passw0rd");
+		selenium.click("form:login");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertTrue(selenium.getText("xpath=/html/body/div/div[2]").startsWith("Welcome, Britney Spears"));
+	}
+
+	// test update customer information
+	@Test(dependsOnMethods={"testCustomerLogin"})
+	public void testCustomerInfoUpdate() {
+		selenium.click("link=Show Reservations");
+		selenium.waitForPageToLoad("30000");
+		selenium.click("link=Update Personal Information");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("form:name", "Lily");
+		selenium.type("form:surname", "Allen");
+		selenium.type("form:age", "5");
+		selenium.type("form:userName", "geronimo2");
+		selenium.type("form:password", "passw0rdd");
+		selenium.click("form:updateInfo");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"Personal information is succesfully updated.");
+	}
+
+	// The customer books a hotel
+	
+	@Test(dependsOnMethods={"testCustomerInfoUpdate"})
+	public void testAddReservation() {
+		selenium.click("link=Add Reservations");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("form:col22date", "31/07/2001");
+		selenium.click("link=Add Hotel for Reservation");
+		selenium.waitForPageToLoad("30000");
+		//selenium.type("form:col22date", "01/01/2002");
+		//selenium.click("//a[@onclick=\"return oamSubmitForm('form','form:dt:1:j_id28');\"]");
+		//selenium.click("link=Add Hotel for Reservation");
+		selenium.click("form:checkouthotel");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertTrue(selenium.getText("xpath=/html/body/div/ul/li")
+				.startsWith("Reservation are completed succesfully."));
+
+	}
+
+	// The customer checks the hotels booked by him.
+	@Test(dependsOnMethods = { "testAddReservation" })
+	public void testShowReservation() {
+		selenium.click("link=Show Reservations");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertTrue(selenium
+				.getText("xpath=//*[@id=\"form:dt:0:col11\"]").startsWith(
+						"Hotel"));
+		//Assert.assertTrue(selenium.getText("xpath=//*[@id=\"form:dt:1:col11\"]").startsWith("Hotel"));
+	}
+
+	// The customer deletes a hotel.
+	@Test(dependsOnMethods = { "testShowReservation" })
+	public void testDeleteReservation() {
+		selenium.click("link=Delete Reservation");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(
+				selenium.getText("xpath=/html/body/div/ul/li"),
+				"Reservation is succesfully delete");
+
+	}
+
+	// The customer logs out and administrator logs in to check reservations
+	@Test(dependsOnMethods = { "testDeleteReservation" })
+	public void testCheckReservation() {
+		selenium.click("link=Logout");
+		selenium.waitForPageToLoad("30000");
+		selenium.type("form:userName", "geronimo1");
+		selenium.type("form:password", "passw0rd");
+		selenium.click("form:login");
+		selenium.waitForPageToLoad("30000");
+		selenium.click("link=Show User Reservations");
+		selenium.waitForPageToLoad("30000");
+		Assert.assertEquals(selenium
+				.getText("xpath=//*[@id=\"form:dt:0:col223\"]"), "geronimo1");
+		Assert.assertEquals(selenium
+				.getText("xpath=//*[@id=\"form:dt:1:col223\"]"), "geronimo2");
+	}
+
+}

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/java/org/apache/webbeans/sample/reservation/test/ReservationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/java/org/apache/webbeans/sample/reservation/test/ReservationTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/java/org/apache/webbeans/sample/reservation/test/ReservationTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/resources/testng.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/resources/testng.xml?rev=991501&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/resources/testng.xml (added)
+++ geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/resources/testng.xml Wed Sep  1 11:02:56 2010
@@ -0,0 +1,25 @@
+<!--
+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.
+-->
+<suite name="Suite" parallel="false">
+  <test name="Test">
+    <classes>
+      <class name="org.apache.webbeans.sample.reservation.test.ReservationTest"/>
+    </classes>
+  </test>
+</suite>

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/javaee6-testsuite/webbean1.0-test/webbean-jpa-test/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message