Author: sergeyhalipov
Date: 2007-11-28 10:08:20 -0500 (Wed, 28 Nov 2007)
New Revision: 4312
Added:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd
Removed:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd
Modified:
trunk/samples/richfaces-demo/pom.xml
Log:
http://jira.jboss.com/jira/browse/RF-1417
Modified: trunk/samples/richfaces-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-demo/pom.xml 2007-11-28 15:03:57 UTC (rev 4311)
+++ trunk/samples/richfaces-demo/pom.xml 2007-11-28 15:08:20 UTC (rev 4312)
@@ -133,6 +133,10 @@
<directory>${basedir}/src/main/java</directory>
<targetPath>/WEB-INF/src</targetPath>
</resource>
+ <resource>
+ <directory>${basedir}/target/classes</directory>
+ <targetPath>/WEB-INF/classes</targetPath>
+ </resource>
</webResources>
</configuration>
</plugin>
Deleted:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml 2007-11-28
15:03:57 UTC (rev 4311)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals-rules.xml 2007-11-28
15:08:20 UTC (rev 4312)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- <!DOCTYPE digester-rules SYSTEM "digester-rules.dtd">
--->
-
-<digester-rules>
- <pattern value="*/capital">
- <object-create-rule classname="org.richfaces.demo.capitals.Capital" />
- <bean-property-setter-rule pattern="name"
propertyname="name"/>
- <bean-property-setter-rule pattern="state"
propertyname="state"/>
- <bean-property-setter-rule pattern="timeZone"
propertyname="timeZone"/>
- <set-next-rule methodname="addCapital"/>
- </pattern>
-</digester-rules>
\ No newline at end of file
Deleted:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml 2007-11-28
15:03:57 UTC (rev 4311)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/capitals.xml 2007-11-28
15:08:20 UTC (rev 4312)
@@ -1,253 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<capitals>
- <capital>
- <state>Alabama</state>
- <name>Montgomery</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Alaska</state>
- <name>Juneau</name>
- <timeZone>GMT-9</timeZone>
- </capital>
- <capital>
- <state>Arizona</state>
- <name>Phoenix</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Arkansas</state>
- <name>Little Rock</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>California</state>
- <name>Sacramento</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>Colorado</state>
- <name>Denver</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Connecticut</state>
- <name>Hartford</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Delaware</state>
- <name>Dover</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Florida</state>
- <name>Tallahassee</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Georgia</state>
- <name>Atlanta</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Hawaii</state>
- <name>Honolulu</name>
- <timeZone>GMT-10</timeZone>
- </capital>
- <capital>
- <state>Idaho</state>
- <name>Boise</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>Illinois</state>
- <name>Springfield</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Indiana</state>
- <name>Indianapolis</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Iowa</state>
- <name>Des Moines</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Kansas</state>
- <name>Topeka</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Kentucky</state>
- <name>Frankfort</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Louisiana</state>
- <name>Baton Rouge</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Maine</state>
- <name>Augusta</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Maryland</state>
- <name>Annapolis</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Massachusetts</state>
- <name>Boston</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Michigan</state>
- <name>Lansing</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Minnesota</state>
- <name>St. Paul</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Mississippi</state>
- <name>Jackson</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Missouri</state>
- <name>Jefferson City</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Montana</state>
- <name>Helena</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Nebraska</state>
- <name>Lincoln</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Nevada</state>
- <name>Carson City</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>New Hampshire</state>
- <name>Concord</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>New Jersey</state>
- <name>Trenton</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>New Mexico</state>
- <name>Santa Fe</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>New York</state>
- <name>Albany</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>North Carolina</state>
- <name>Raleigh</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>North Dakota</state>
- <name>Bismarck</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Ohio</state>
- <name>Columbus</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Oklahoma</state>
- <name>Oklahoma City</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Oregon</state>
- <name>Salem</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>Pennsylvania</state>
- <name>Harrisburg</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Rhode Island</state>
- <name>Providence</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>South Carolina</state>
- <name>Columbia</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>South Dakota</state>
- <name>Pierre</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Tennessee</state>
- <name>Nashville</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Texas</state>
- <name>Austin</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Utah</state>
- <name>Salt Lake City</name>
- <timeZone>GMT-7</timeZone>
- </capital>
- <capital>
- <state>Vermont</state>
- <name>Montpelier</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Virginia</state>
- <name>Richmond</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Washington</state>
- <name>Olympia</name>
- <timeZone>GMT-8</timeZone>
- </capital>
- <capital>
- <state>West Virginia</state>
- <name>Charleston</name>
- <timeZone>GMT-5</timeZone>
- </capital>
- <capital>
- <state>Wisconsin</state>
- <name>Madison</name>
- <timeZone>GMT-6</timeZone>
- </capital>
- <capital>
- <state>Wyoming</state>
- <name>Cheyenne</name>
- <timeZone>GMT-7</timeZone>
- </capital>
-</capitals>
\ No newline at end of file
Deleted:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd 2007-11-28
15:03:57 UTC (rev 4311)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/capitals/digester-rules.dtd 2007-11-28
15:08:20 UTC (rev 4312)
@@ -1,146 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!--
- "Digester" component of the Jakarta Commons Subproject
- DTD for the definition of Digester rules in XML.
- $Id: digester-rules.dtd,v 1.8 2003/03/27 18:54:45 rdonkin Exp $
--->
-
-<!-- This document type defines an XML format for defining Digester rules.
- Digester is a framework for pattern-matching-based parsing of XML into
- Java objects. See
http://jakarta.apache.org/commons/digester.html. -->
-
-<!ENTITY % rule-elements "bean-property-setter-rule | call-method-rule |
call-param-rule |
- factory-create-rule | object-create-rule |
- set-properties-rule | set-property-rule | set-top-rule |
- set-next-rule" >
-
-<!-- digester-rules is the root element. -->
-<!ELEMENT digester-rules (pattern | include | bean-property-setter-rule |
call-method-rule | call-param-rule | factory-create-rule | object-create-rule |
set-properties-rule | set-property-rule | set-top-rule | set-next-rule )*>
-
-
-<!-- <pattern> defines a matching pattern, or part of a matching pattern. Any
- rule nested in a pattern element prepends its parent's to its pattern.
- Patterns may be recursively nested.
- Example:
- <pattern value="foo">
- <pattern value="bar">
- <object-create-rule pattern="baz" classname="Fubar"
/>
- </pattern>
- </pattern>
-
- The above sample fragment defines an ObjectCreateRule associated
- with the pattern "foo/bar/baz".
-
- Note that the use of pattern elements is optional; an alternative is for
- each rule element to contain a 'pattern' attribute. -->
-<!ELEMENT pattern (pattern | include | bean-property-setter-rule | call-method-rule |
call-param-rule |
- factory-create-rule | object-create-rule |
- set-properties-rule | set-property-rule | set-top-rule |
- set-next-rule )*>
-<!ATTLIST pattern
- value CDATA #REQUIRED>
-
-
-<!--
- <include> allows one set of digester rules to be included inside
- another. The 'path' attribute contains the URI of the document to
- include. Inclusion behaves as if the included rules document is
- 'macro-expanded' within the outer document.
- Programmatically initialized rules can be included as well, via the
- 'class' attribute. The 'class' attribute should contain the name
- of a class that implements
- org.apache.commons.digester.xmlrules.DigesterRulesSource.
--->
-<!ELEMENT include EMPTY>
-<!ATTLIST include
- path CDATA #IMPLIED
- class CDATA #IMPLIED>
-
-
-<!-- Each 'rule' element below corresponds to a concrete subclass
- of org.apache.framework.digester.Rule.
- Each 'rule' element has an optional 'pattern' attribute, which
- defines the pattern for that rule instance. If the rule element
- is nested inside one or more <pattern> elements, those patterns
- will be prepended to the pattern specified in the rule's 'pattern'
- attribute. -->
-
-<!-- Bean Property Setter Rule -->
-<!ELEMENT bean-property-setter-rule EMPTY>
-<!ATTLIST bean-property-setter-rule
- pattern CDATA #IMPLIED
- propertyname CDATA #IMPLIED>
-
-<!-- CallMethodRule -->
-<!ELEMENT call-method-rule EMPTY>
-<!ATTLIST call-method-rule
- pattern CDATA #IMPLIED
- methodname CDATA #REQUIRED
- paramcount CDATA #IMPLIED
- paramtypes CDATA #IMPLIED>
-
-<!--
- CallParamRule
- attrname - set param from attribute value (cannot be combined with from-stack)
- from-stack - set param from stack (cannot be combined with attrname)
- -->
-<!ELEMENT call-param-rule EMPTY>
-<!ATTLIST call-param-rule
- pattern CDATA #IMPLIED
- paramnumber CDATA #REQUIRED
- attrname CDATA #IMPLIED
- from-stack CDATA #IMPLIED>
-
-<!--
- FactoryCreateRule
-
- ignore-exceptions - if this attribute is (ignore case) 'true' then any
exceptions
- thrown by the object create rule will be ignore.
- This will allow processing to continue.
- -->
-<!ELEMENT factory-create-rule EMPTY>
-<!ATTLIST factory-create-rule
- pattern CDATA #IMPLIED
- classname CDATA #REQUIRED
- attrname CDATA #IMPLIED
- ignore-exceptions CDATA #IMPLIED>
-
-<!-- ObjectCreateRule -->
-<!ELEMENT object-create-rule EMPTY>
-<!ATTLIST object-create-rule
- pattern CDATA #IMPLIED
- classname CDATA #REQUIRED
- attrname CDATA #IMPLIED>
-
-<!-- SetPropertiesRule -->
-<!ELEMENT set-properties-rule (alias)*>
-<!ATTLIST factory-create-rule
- pattern CDATA #IMPLIED>
-
-<!-- An alias is a custom attribute->property name mapping -->
-<!ELEMENT alias EMPTY>
-<!ATTLIST alias
- attr-name CDATA #REQUIRED
- prop-name CDATA #IMPLIED>
-
-<!-- SetPropertyRule -->
-<!ELEMENT set-property-rule EMPTY>
-<!ATTLIST set-property-rule
- pattern CDATA #IMPLIED
- name CDATA #IMPLIED
- value CDATA #IMPLIED>
-
-<!-- SetTopRule -->
-<!ELEMENT set-top-rule EMPTY>
-<!ATTLIST set-top-rule
- pattern CDATA #IMPLIED
- methodname CDATA #REQUIRED
- paramtype CDATA #IMPLIED>
-
-<!-- SetNextRule -->
-<!ELEMENT set-next-rule EMPTY>
-<!ATTLIST set-next-rule
- pattern CDATA #IMPLIED
- methodname CDATA #REQUIRED
- paramtype CDATA #IMPLIED>
Added:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml
===================================================================
---
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml 2007-11-28
15:08:20 UTC (rev 4312)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ <!DOCTYPE digester-rules SYSTEM "digester-rules.dtd">
+-->
+
+<digester-rules>
+ <pattern value="*/capital">
+ <object-create-rule classname="org.richfaces.demo.capitals.Capital" />
+ <bean-property-setter-rule pattern="name"
propertyname="name"/>
+ <bean-property-setter-rule pattern="state"
propertyname="state"/>
+ <bean-property-setter-rule pattern="timeZone"
propertyname="timeZone"/>
+ <set-next-rule methodname="addCapital"/>
+ </pattern>
+</digester-rules>
\ No newline at end of file
Property changes on:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals-rules.xml
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml
===================================================================
---
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml 2007-11-28
15:08:20 UTC (rev 4312)
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<capitals>
+ <capital>
+ <state>Alabama</state>
+ <name>Montgomery</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Alaska</state>
+ <name>Juneau</name>
+ <timeZone>GMT-9</timeZone>
+ </capital>
+ <capital>
+ <state>Arizona</state>
+ <name>Phoenix</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Arkansas</state>
+ <name>Little Rock</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>California</state>
+ <name>Sacramento</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Colorado</state>
+ <name>Denver</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Connecticut</state>
+ <name>Hartford</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Delaware</state>
+ <name>Dover</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Florida</state>
+ <name>Tallahassee</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Georgia</state>
+ <name>Atlanta</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Hawaii</state>
+ <name>Honolulu</name>
+ <timeZone>GMT-10</timeZone>
+ </capital>
+ <capital>
+ <state>Idaho</state>
+ <name>Boise</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Illinois</state>
+ <name>Springfield</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Indiana</state>
+ <name>Indianapolis</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Iowa</state>
+ <name>Des Moines</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Kansas</state>
+ <name>Topeka</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Kentucky</state>
+ <name>Frankfort</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Louisiana</state>
+ <name>Baton Rouge</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Maine</state>
+ <name>Augusta</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Maryland</state>
+ <name>Annapolis</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Massachusetts</state>
+ <name>Boston</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Michigan</state>
+ <name>Lansing</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Minnesota</state>
+ <name>St. Paul</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Mississippi</state>
+ <name>Jackson</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Missouri</state>
+ <name>Jefferson City</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Montana</state>
+ <name>Helena</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Nebraska</state>
+ <name>Lincoln</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Nevada</state>
+ <name>Carson City</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>New Hampshire</state>
+ <name>Concord</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>New Jersey</state>
+ <name>Trenton</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>New Mexico</state>
+ <name>Santa Fe</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>New York</state>
+ <name>Albany</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>North Carolina</state>
+ <name>Raleigh</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>North Dakota</state>
+ <name>Bismarck</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Ohio</state>
+ <name>Columbus</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Oklahoma</state>
+ <name>Oklahoma City</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Oregon</state>
+ <name>Salem</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Pennsylvania</state>
+ <name>Harrisburg</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Rhode Island</state>
+ <name>Providence</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>South Carolina</state>
+ <name>Columbia</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>South Dakota</state>
+ <name>Pierre</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Tennessee</state>
+ <name>Nashville</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Texas</state>
+ <name>Austin</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Utah</state>
+ <name>Salt Lake City</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Vermont</state>
+ <name>Montpelier</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Virginia</state>
+ <name>Richmond</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Washington</state>
+ <name>Olympia</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>West Virginia</state>
+ <name>Charleston</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Wisconsin</state>
+ <name>Madison</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Wyoming</state>
+ <name>Cheyenne</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+</capitals>
\ No newline at end of file
Property changes on:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/capitals.xml
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd
===================================================================
---
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd
(rev 0)
+++
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd 2007-11-28
15:08:20 UTC (rev 4312)
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ "Digester" component of the Jakarta Commons Subproject
+ DTD for the definition of Digester rules in XML.
+ $Id: digester-rules.dtd,v 1.8 2003/03/27 18:54:45 rdonkin Exp $
+-->
+
+<!-- This document type defines an XML format for defining Digester rules.
+ Digester is a framework for pattern-matching-based parsing of XML into
+ Java objects. See
http://jakarta.apache.org/commons/digester.html. -->
+
+<!ENTITY % rule-elements "bean-property-setter-rule | call-method-rule |
call-param-rule |
+ factory-create-rule | object-create-rule |
+ set-properties-rule | set-property-rule | set-top-rule |
+ set-next-rule" >
+
+<!-- digester-rules is the root element. -->
+<!ELEMENT digester-rules (pattern | include | bean-property-setter-rule |
call-method-rule | call-param-rule | factory-create-rule | object-create-rule |
set-properties-rule | set-property-rule | set-top-rule | set-next-rule )*>
+
+
+<!-- <pattern> defines a matching pattern, or part of a matching pattern. Any
+ rule nested in a pattern element prepends its parent's to its pattern.
+ Patterns may be recursively nested.
+ Example:
+ <pattern value="foo">
+ <pattern value="bar">
+ <object-create-rule pattern="baz" classname="Fubar"
/>
+ </pattern>
+ </pattern>
+
+ The above sample fragment defines an ObjectCreateRule associated
+ with the pattern "foo/bar/baz".
+
+ Note that the use of pattern elements is optional; an alternative is for
+ each rule element to contain a 'pattern' attribute. -->
+<!ELEMENT pattern (pattern | include | bean-property-setter-rule | call-method-rule |
call-param-rule |
+ factory-create-rule | object-create-rule |
+ set-properties-rule | set-property-rule | set-top-rule |
+ set-next-rule )*>
+<!ATTLIST pattern
+ value CDATA #REQUIRED>
+
+
+<!--
+ <include> allows one set of digester rules to be included inside
+ another. The 'path' attribute contains the URI of the document to
+ include. Inclusion behaves as if the included rules document is
+ 'macro-expanded' within the outer document.
+ Programmatically initialized rules can be included as well, via the
+ 'class' attribute. The 'class' attribute should contain the name
+ of a class that implements
+ org.apache.commons.digester.xmlrules.DigesterRulesSource.
+-->
+<!ELEMENT include EMPTY>
+<!ATTLIST include
+ path CDATA #IMPLIED
+ class CDATA #IMPLIED>
+
+
+<!-- Each 'rule' element below corresponds to a concrete subclass
+ of org.apache.framework.digester.Rule.
+ Each 'rule' element has an optional 'pattern' attribute, which
+ defines the pattern for that rule instance. If the rule element
+ is nested inside one or more <pattern> elements, those patterns
+ will be prepended to the pattern specified in the rule's 'pattern'
+ attribute. -->
+
+<!-- Bean Property Setter Rule -->
+<!ELEMENT bean-property-setter-rule EMPTY>
+<!ATTLIST bean-property-setter-rule
+ pattern CDATA #IMPLIED
+ propertyname CDATA #IMPLIED>
+
+<!-- CallMethodRule -->
+<!ELEMENT call-method-rule EMPTY>
+<!ATTLIST call-method-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramcount CDATA #IMPLIED
+ paramtypes CDATA #IMPLIED>
+
+<!--
+ CallParamRule
+ attrname - set param from attribute value (cannot be combined with from-stack)
+ from-stack - set param from stack (cannot be combined with attrname)
+ -->
+<!ELEMENT call-param-rule EMPTY>
+<!ATTLIST call-param-rule
+ pattern CDATA #IMPLIED
+ paramnumber CDATA #REQUIRED
+ attrname CDATA #IMPLIED
+ from-stack CDATA #IMPLIED>
+
+<!--
+ FactoryCreateRule
+
+ ignore-exceptions - if this attribute is (ignore case) 'true' then any
exceptions
+ thrown by the object create rule will be ignore.
+ This will allow processing to continue.
+ -->
+<!ELEMENT factory-create-rule EMPTY>
+<!ATTLIST factory-create-rule
+ pattern CDATA #IMPLIED
+ classname CDATA #REQUIRED
+ attrname CDATA #IMPLIED
+ ignore-exceptions CDATA #IMPLIED>
+
+<!-- ObjectCreateRule -->
+<!ELEMENT object-create-rule EMPTY>
+<!ATTLIST object-create-rule
+ pattern CDATA #IMPLIED
+ classname CDATA #REQUIRED
+ attrname CDATA #IMPLIED>
+
+<!-- SetPropertiesRule -->
+<!ELEMENT set-properties-rule (alias)*>
+<!ATTLIST factory-create-rule
+ pattern CDATA #IMPLIED>
+
+<!-- An alias is a custom attribute->property name mapping -->
+<!ELEMENT alias EMPTY>
+<!ATTLIST alias
+ attr-name CDATA #REQUIRED
+ prop-name CDATA #IMPLIED>
+
+<!-- SetPropertyRule -->
+<!ELEMENT set-property-rule EMPTY>
+<!ATTLIST set-property-rule
+ pattern CDATA #IMPLIED
+ name CDATA #IMPLIED
+ value CDATA #IMPLIED>
+
+<!-- SetTopRule -->
+<!ELEMENT set-top-rule EMPTY>
+<!ATTLIST set-top-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramtype CDATA #IMPLIED>
+
+<!-- SetNextRule -->
+<!ELEMENT set-next-rule EMPTY>
+<!ATTLIST set-next-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramtype CDATA #IMPLIED>
Property changes on:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/capitals/digester-rules.dtd
___________________________________________________________________
Name: svn:executable
+ *