CVS: TapestryBook/petstore/context/WEB-INF AdviceBanner.html,NONE,1.1 Border.html,NONE,1.1 Banner.html,NONE,1.1 ProductLink.jwc,NONE,1.1 Sidebar.jwc,NONE,1.1 DirectArea.jwc,NONE,1.1 AdviceBanner.jwc,NONE,1.1 MyList.html,NONE,1.1 ProductLink.html,NONE,1.1 petstore.application,NONE,1.1 Border.jwc,NONE,1.1 Sidebar.html,NONE,1.1 web.xml,NONE,1.1 MyList.jwc,NONE,1.1 Banner.jwc,NONE,1.1 Home.page,NONE,1.1
Howard Lewis Ship <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/TapestryBook/petstore/context/WEB-INF
In directory sc8-pr-cvs1:/tmp/cvs-serv19059/petstore/context/WEB-INF
Added Files:
AdviceBanner.html Border.html Banner.html ProductLink.jwc
Sidebar.jwc DirectArea.jwc AdviceBanner.jwc MyList.html
ProductLink.html petstore.application Border.jwc Sidebar.html
web.xml MyList.jwc Banner.jwc Home.page
Log Message:
Add start of petstore application.
--- NEW FILE: AdviceBanner.html ---
<!-- $Id: AdviceBanner.html,v 1.1 2003/02/07 16:44:35 hship Exp $ -->
<span jwcid="$content$">
<span jwcid="@Conditional" condition="[[ page.visit.enableAdviceBanner ]]">
<table border="0"
width="100%"
bgcolor="#336666"
cellpadding="1"
cellspacing="0">
<tr>
<td align="center">
<image jwcid="@Image" image="[[ getAsset(page.visit.activeCategory) ]]"/>
</td>
</tr>
</table>
</span>
</span>
--- NEW FILE: Border.html ---
<html jwcid="@Shell" title="Tapestry Pet Store" stylesheet="[[ assets.stylesheet ]]">
<!-- $Id: Border.html,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<head jwcid="$remove$">
<title>Tapestry Petshop</title>
</head>
<body jwcid="@Body">
<table width="100%" height="100%" border="0" cellpadding="5" cellspacing="0">
<tr height="100" valign="top">
<td colspan="3"><span jwcid="@Banner">Banner</span></td>
</tr>
<tr valign="top">
<td width="20%" valign="top"><span jwcid="@Sidebar">Sidebar</span></td>
<td width="60%" valign="top">
<span jwcid="@RenderBody">
<h1>Page Content Goes Here</h1>
</span>
</td>
<td valign="top">
<span jwcid="@MyList">MyList</span>
</td>
</tr>
<tr valign="bottom">
<td colspan="3">
<span jwcid="@AdviceBanner">AdviceBanner</span>
</td>
</tr>
<tr>
<td colspan="3">
<table bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td><hr noshade="noshade" size="1"></td>
</tr>
<tr>
<td align="center" class="petstore_footer">The Java Pet Store Demo is
a fictional sample application derived from the Java BluePrints for the Enterprise. For more
information, visit the Java BluePrints for the Enterprise Web site at <a
href="http://java.sun.com/blueprints/enterprise/"><code>http://java.sun.com/blueprints/enterprise/</code></a>.<br></td>
</tr>
<tr>
<td><hr noshade="noshade" size="1"></td>
</tr>
<tr>
<td align="center" class="petstore_footer">
<a href="http://jakarta.apache.org/proposals/tapestry"><img src="images/powered-by-tapestry.gif" alt="Powered By Tapestry"/></a>
<span jwcid="@contrib:InspectorButton"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
--- NEW FILE: Banner.html ---
<!-- $Id: Banner.html,v 1.1 2003/02/07 16:44:36 hship Exp $ --><span jwcid="$content$">
<table bgcolor="#FFFFFF" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="middle"><a href="#" jwcid="@PageLink" page="Home"><img src="images/petshop-logo.gif" alt="Java Pet Store Demo logo" border="0"></a>
</td>
<td class="petstore" align="right" valign="middle">
<form jwcid="@Form" listener="[[ listeners.search ]]">
<input class="petstore_listing" type="text" jwcid="@TextField" value="[[ searchValue ]]" size="8"/>
<input class="petstore_listing" type="submit" value="Search"/>
</form><br><a href="#" jwcid="@DirectLink" listener="[[ listeners.viewAccount ]]">Account</a> |
<a href="#" jwcid="@DirectLink" listener="[[ listeners.viewCart ]]">
Cart
</a>
|<span jwcid="@Conditional" condition="[[ page.visit.loggedIn ]]"><a href="#" jwcid="@DirectLink" listener="[[ listeners.signOut ]]">Sign out</a></span><span jwcid="@Conditional" condition="[[ ! page.visit.loggedIn ]]"><a href="#" jwcid="@DirectLink" listener="[[ listeners.signIn ]]">Sign In</a></span>
</td>
</tr>
<!-- Removed the controls for localization, temporarily. -->
<tr>
<td colspan="2">
<hr noshade="noshade" size="1">
</td>
</tr>
</table></span>
--- NEW FILE: ProductLink.jwc ---
<?xml version="1.0"?>
<!-- $Id: ProductLink.jwc,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<component-specification class="org.apache.tapestry.pets.components.ProductLink"
allow-body="no" allow-informal-parameters="no">
<parameter name="product" type="org.apache.tapestry.pets.domain.Product"
required="yes"
direction="in"/>
</component-specification>
--- NEW FILE: Sidebar.jwc ---
<?xml version="1.0"?>
<!-- $Id: Sidebar.jwc,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<component-specification>
<property-specification name="categoryName" type="java.lang.String"/>
</component-specification>
--- NEW FILE: DirectArea.jwc ---
<?xml version="1.0"?>
<!-- $Id: DirectArea.jwc,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<component-specification
class="org.apache.tapestry.pets.components.DirectArea"
allow-body="no" allow-informal-parameters="yes">
<parameter name="listener" required="yes" type="net.sf.tapestry.IActionListener"/>
<parameter name="parameters" type="java.lang.Object" direction="in"/>
</component-specification>
--- NEW FILE: AdviceBanner.jwc ---
<?xml version="1.0"?>
<!-- $Id: AdviceBanner.jwc,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<component-specification>
<!-- Map a category id to a particular image. -->
<context-asset name="BIRDS" path="images/banner_birds.gif"/>
<context-asset name="CATS" path="images/banner_cats.gif"/>
<context-asset name="DOGS" path="images/banner_dogs.gif"/>
<context-asset name="FISH" path="images/banner_fish.gif"/>
<context-asset name="REPTILES" path="images/banner_reptiles.gif"/>
</component-specification>
--- NEW FILE: MyList.html ---
<!-- $Id: MyList.html,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<span jwcid="$content$">
<span jwcid="@Conditional" condition="[[ page.visit.enableMyList ]]">
<table border="0"
width="100%"
cellpadding="1"
cellspacing="0">
<tr>
<td bgcolor="#336666" class="petstore_title" align="center">
<font color="#FFFFFF">My List</font>
</td>
</tr>
<tr>
<td bgcolor="#336666">
<table border="0"
width="100%"
cellpadding="5"
cellspacing="1">
<tr>
<td bgcolor="#FFFFFF" class="petstore">
<span jwcid="@Foreach" source="[[ page.visit.myListProducts ]]" value="[[ product ]]">
<a href="#" jwcid="@ProductLink" product="[[ product ]]">Product</a>
<br/>
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</span>
</span>
--- NEW FILE: ProductLink.html ---
<!-- $Id: ProductLink.html,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<span jwcid="$content$">
<a href="#"><span jwcid="@Insert" value="[[ product.name ]]">Product</span></a>
</span>
--- NEW FILE: petstore.application ---
<?xml version="1.0"?>
<!-- $Id: petstore.application,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE application PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<application name="Tapestry Pet Store">
<property name="net.sf.tapestry.visit-class" value="org.apache.tapestry.pets.Visit"/>
<property name="net.sf.tapestry.global-class" value="org.apache.tapestry.pets.Global"/>
<library id="contrib" specification-path="/net/sf/tapestry/contrib/Contrib.library"/>
</application>
--- NEW FILE: Border.jwc ---
<?xml version="1.0"?>
<!-- $Id: Border.jwc,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<component-specification>
<context-asset name="stylesheet" path="css/petstore.css"/>
</component-specification>
--- NEW FILE: Sidebar.html ---
<!-- $Id: Sidebar.html,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<span jwcid="$content$">
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#336666" class="petstore_title" align="center">
<font color="#FFFFFF">Pets</font>
</td>
</tr>
<tr>
<td bgcolor="#336666">
<table border="0" width="100%" cellpadding="5" cellspacing="1">
<tr>
<td bgcolor="#FFFFFF" class="petstore">
<span jwcid="@Foreach" source="[[ page.global.sortedCategoryNames ]]" value="[[ categoryName ]]">
<a href="#"><span jwcid="@Insert" value="[[ categoryName ]]">Octopi</span></a>
<br/>
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</span>
--- NEW FILE: web.xml ---
<?xml version="1.0"?>
<!-- web.xml,v 1.1 2002/07/08 21:46:10 hship Exp -->
<!DOCTYPE web-app
PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>petstore</servlet-name>
<servlet-class>net.sf.tapestry.ApplicationServlet</servlet-class>
<!-- Set the load order -->
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>petstore</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
</web-app>
--- NEW FILE: MyList.jwc ---
<?xml version="1.0"?>
<!-- $Id: MyList.jwc,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<component-specification>
<property-specification name="product" type="org.apache.tapestry.pets.domain.Product"/>
</component-specification>
--- NEW FILE: Banner.jwc ---
<?xml version="1.0"?>
<!-- $Id: Banner.jwc,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE component-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<component-specification class="org.apache.tapestry.pets.components.Banner">
<property-specification name="searchValue" type="java.lang.String"/>
</component-specification>
--- NEW FILE: Home.page ---
<?xml version="1.0"?>
<!-- $Id: Home.page,v 1.1 2003/02/07 16:44:36 hship Exp $ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 1.4//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_1_4.dtd">
<page-specification class="org.apache.tapestry.pets.pages.Home"/>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com