Author: gvanmatre
Date: Wed Jun 28 21:02:10 2006
New Revision: 417933
URL: http://svn.apache.org/viewvc?rev=417933&view=rev
Log:
Added another flavor of the clay html template and a simple use of the clay
symbol jsp tag.
Added:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/businessPerson1.html
(with props)
Modified:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/resources/org/apache/shale/usecases/symbols/clay-tiles-config.xml
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/WEB-INF/faces-config.xml
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/rolodex/jsprolodex.jsp
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/home.html
Modified:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/resources/org/apache/shale/usecases/symbols/clay-tiles-config.xml
URL:
http://svn.apache.org/viewvc/struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/resources/org/apache/shale/usecases/symbols/clay-tiles-config.xml?rev=417933&r1=417932&r2=417933&view=diff
==============================================================================
---
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/resources/org/apache/shale/usecases/symbols/clay-tiles-config.xml
(original)
+++
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/resources/org/apache/shale/usecases/symbols/clay-tiles-config.xml
Wed Jun 28 21:02:10 2006
@@ -1,44 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
-
- Copyright 2006 The Apache Software Foundation.
-
- Licensed 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.
-
+
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed 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.
+
-->
- <!DOCTYPE view PUBLIC
+<!DOCTYPE view PUBLIC
"-//Apache Software Foundation//DTD Shale Clay View Configuration
1.0//EN"
"http://struts.apache.org/dtds/shale-clay-config_1_0.dtd">
<view>
- <component jsfid="/symbols/page1.xml" extends="basePage">
- <symbols>
- <set name="@title" value="Page 1"/>
- <set name="@bodycontent" value="page1Panel"/>
- <set name="@logo"
value="http://myfaces.apache.org/images/myfaces-logo.png"/>
- <set name="@leftContent" value="page1LeftPanel"/>
- </symbols>
- </component>
-
- <component jsfid="/symbols/page2.xml" extends="basePage">
- <symbols>
- <set name="@title" value="Page 2"/>
- <set name="@bodycontent" value="/symbols/fullperson.html"/>
- <set name="@logo"
value="http://jsfcentral.com/images/jsf-logo-new.gif"/>
- <set name="@leftContent" value="page2LeftPanel"/>
- </symbols>
- </component>
-
+ <component jsfid="/symbols/page1.xml" extends="basePage">
+ <symbols>
+ <set name="@title" value="Page 1" />
+ <set name="@bodycontent" value="page1Panel" />
+ <set name="@logo"
+
value="http://myfaces.apache.org/images/myfaces-logo.png" />
+ <set name="@leftContent" value="page1LeftPanel" />
+ </symbols>
+ </component>
+
+ <component jsfid="/symbols/page2.xml" extends="basePage">
+ <symbols>
+ <set name="@title" value="Page 2" />
+ <set name="@bodycontent"
value="/symbols/fullperson.html" />
+ <set name="@logo"
+
value="http://jsfcentral.com/images/jsf-logo-new.gif" />
+ <set name="@leftContent" value="page2LeftPanel" />
+ </symbols>
+ </component>
+
+ <component jsfid="/symbols/page4.xml" extends="basePage">
+ <symbols>
+ <set name="@title" value="Page 4" />
+ <set name="@bodycontent"
+ value="/symbols/businessPerson1.html" />
+ <set name="@leftContent" value="page3LeftPanel" />
+ </symbols>
+ </component>
+
+
</view>
Modified:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/WEB-INF/faces-config.xml
URL:
http://svn.apache.org/viewvc/struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/WEB-INF/faces-config.xml?rev=417933&r1=417932&r2=417933&view=diff
==============================================================================
---
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/WEB-INF/faces-config.xml
(original)
+++
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/WEB-INF/faces-config.xml
Wed Jun 28 21:02:10 2006
@@ -452,6 +452,15 @@
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>symbols$page4</managed-bean-name>
+ <managed-bean-class>
+ org.apache.shale.usecases.symbols.RegistrationForm
+ </managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
<managed-bean>
<managed-bean-name>basicPerson</managed-bean-name>
@@ -538,5 +547,16 @@
</navigation-case>
</navigation-rule>
+ <navigation-rule>
+ <from-view-id>/symbols/page4*</from-view-id>
+ <navigation-case>
+ <from-outcome>save</from-outcome>
+ <to-view-id>/symbols/page4.xml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>home</from-outcome>
+ <to-view-id>/symbols/home.html</to-view-id>
+ </navigation-case>
+ </navigation-rule>
</faces-config>
Modified:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/rolodex/jsprolodex.jsp
URL:
http://svn.apache.org/viewvc/struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/rolodex/jsprolodex.jsp?rev=417933&r1=417932&r2=417933&view=diff
==============================================================================
---
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/rolodex/jsprolodex.jsp
(original)
+++
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/rolodex/jsprolodex.jsp
Wed Jun 28 21:02:10 2006
@@ -155,8 +155,9 @@
<div id="contents"><h:panelGrid columns="2">
<!-- A list of contacts to select from -->
- <clay:clay id="contacts" jsfid="contactTable"
- managedBeanName="rolodex" />
+ <clay:clay id="contacts" jsfid="contactTable">
+ <clay:symbol name="managed-bean-name"
value="rolodex"/>
+ </clay:clay>
<h:panelGrid columns="2">
<clay:clay id="namePanel" jsfid="namePanel"
Added:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/businessPerson1.html
URL:
http://svn.apache.org/viewvc/struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/businessPerson1.html?rev=417933&view=auto
==============================================================================
---
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/businessPerson1.html
(added)
+++
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/businessPerson1.html
Wed Jun 28 21:02:10 2006
@@ -0,0 +1,64 @@
+<table xmlns:clay="http://struts.apache.org/shale/clay-plugin/html">
+ <tr>
+ <td colspan="3">
+ <p>This example shows how a pattern of components, labels,
input text
+ fields and messages can be abstracted into a common
template.</p>
+ </td>
+ </tr>
+
+ <tr>
+ <clay:element
+
jsfid="classpath*:org/apache/shale/usecases/symbols/inputTextWidget.html">
+ <clay:symbols>
+
+ <clay:set name="label" value="First Name:" />
+ <clay:set name="property" value="firstName" />
+ <clay:set name="size" value="20" />
+ <clay:set name="maxlength" value="30" />
+ <clay:set name="required value=" true"/>
+ <clay:set name="immediate" vallue="false" />
+ <clay:set name="managed-bean-name"
value="businessPerson" />
+ </clay:symbols>
+ </clay:element>
+ <tr>
+ <clay:element
+
jsfid="classpath*:org/apache/shale/usecases/symbols/inputTextWidget.html">
+ <clay:symbols>
+
+ <clay:set name="label" value="Middle Name:" />
+ <clay:set name="property" value="middleName" />
+ <clay:set name="size" value="20" />
+ <clay:set name="maxlength" value="30" />
+ <clay:set name="required" value="false" />
+ <clay:set name="immediate" value="false" />
+ <clay:set name="managed-bean-name"
value="businessPerson" />
+ </clay:symbols>
+ </clay:element>
+ <tr>
+ <clay:element
+
jsfid="classpath*:org/apache/shale/usecases/symbols/inputTextWidget.html">
+ <clay:symbols>
+
+ <clay:set name="label" value="Last Name:" />
+ <clay:set name="property" value="lastName" />
+ <clay:set name="size" value="30" />
+ <clay:set name="maxlength" value="40" />
+ <clay:set name="required" value="true" />
+ <clay:set name="immediate" value="false" />
+ <clay:set name="managed-bean-name"
value="businessPerson" />
+ </clay:symbols>
+ </clay:element>
+ <tr>
+ <clay:element
+
jsfid="classpath*:org/apache/shale/usecases/symbols/inputTextWidget.html">
+ <clay:symbols>
+ <clay:set name="label" value="Business Name:" />
+ <clay:set name="property" value="businessName"
/>
+ <clay:set name="size" value="40" />
+ <clay:set name="maxlength" value="50" />
+ <clay:set name="required" value="true" />
+ <clay:set name="immediate" value="false" />
+ <clay:set name="managed-bean-name"
value="businessPerson" />
+ </clay:symbols>
+ </clay:element>
+</table>
Propchange:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/businessPerson1.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/businessPerson1.html
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified:
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/home.html
URL:
http://svn.apache.org/viewvc/struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/home.html?rev=417933&r1=417932&r2=417933&view=diff
==============================================================================
---
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/home.html
(original)
+++
struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/symbols/home.html
Wed Jun 28 21:02:10 2006
@@ -104,6 +104,25 @@
<h:outputText value="[View Inner Body Source]"/>
<f:param name="url"
value="classpath*:org/apache/shale/usecases/symbols/inputTextWidget.html" />
</h:outputLink>
+
+<br />
+<h:outputLink value="page4.xml">
+ <f:param name="init" value="true" />
+ <h:outputText value="Page 4"/>
+</h:outputLink>
+<h:outputLink value="viewsource.html">
+ <h:outputText value="[View Outer Source]"/>
+ <f:param name="url"
value="classpath*:org/apache/shale/usecases/symbols/clay-tiles-config.xml" />
+</h:outputLink>
+<h:outputLink value="viewsource.html">
+ <h:outputText value="[View Body Source]"/>
+ <f:param name="url" value="/symbols/businessPerson1.html" />
+</h:outputLink>
+<h:outputLink value="viewsource.html">
+ <h:outputText value="[View Inner Body Source]"/>
+ <f:param name="url"
value="classpath*:org/apache/shale/usecases/symbols/inputTextWidget.html" />
+</h:outputLink>
+
<br />
</h:form>