Author: dsvyatobatsko
Date: 2008-11-12 12:37:24 -0500 (Wed, 12 Nov 2008)
New Revision: 11121
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Album.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/AudioLibrary.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Performer.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Song.java
trunk/test-applications/seleniumTest/richfaces/src/main/resources/rich-digester-rules.xml
trunk/test-applications/seleniumTest/richfaces/src/main/resources/swing-digester-rules.xml
Removed:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/digester-rules.xml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Album.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/AudioLibrary.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Performer.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Song.java
trunk/test-applications/seleniumTest/richfaces/src/main/resources/audio-library.xml
Log:
swing implementation added
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeTestBean.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeTestBean.java 2008-11-12
17:19:12 UTC (rev 11120)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeTestBean.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -110,8 +110,7 @@
public TreeNode<Object> getRichTreeNode() {
if (null == richRootNode) {
- URL rulesUrl = getClass().getResource("/digester-rules.xml");
- Digester digester = DigesterLoader.createDigester(rulesUrl);
+ Digester digester =
DigesterLoader.createDigester(getClass().getResource("/rich-digester-rules.xml"));
AudioLibrary library = new AudioLibrary();
digester.push(library);
try {
@@ -129,6 +128,28 @@
return richRootNode;
}
+ private javax.swing.tree.TreeNode swingRootNode = null;
+
+ public javax.swing.tree.TreeNode getSwingTreeNode() {
+ if (null == swingRootNode) {
+ Digester digester =
DigesterLoader.createDigester(getClass().getResource("/swing-digester-rules.xml"));
+ org.ajax4jsf.bean.tree.swing.AudioLibrary library = new
org.ajax4jsf.bean.tree.swing.AudioLibrary();
+ digester.push(library);
+ try {
+
digester.parse(getClass().getResourceAsStream("/audio-library.xml"));
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (SAXException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ swingRootNode = library;
+ }
+
+ return swingRootNode;
+ }
+
public String getNodeTitle() {
return nodeTitle;
}
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Album.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Album.java 2008-11-12
17:19:12 UTC (rev 11120)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Album.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -1,24 +1,17 @@
package org.ajax4jsf.bean.tree.rich;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.Map.Entry;
+import org.richfaces.model.TreeNodeImpl;
-import org.richfaces.model.TreeNode;
+public class Album extends TreeNodeImpl<Object> {
-public class Album implements TreeNode<Object> {
-
/**
* serial version ID
*/
- private static final long serialVersionUID = 443084062111349934L;
+ private static final long serialVersionUID = -1769541701902658524L;
private long id;
- private Map<Object, TreeNode<Object>> songs = new
LinkedHashMap<Object, TreeNode<Object>>();
private String title;
private Integer year;
- private Performer performer;
public Album() {
setId(System.currentTimeMillis());
@@ -28,45 +21,16 @@
// TreeNode implementation
//
- public void addChild(Object identifier, TreeNode<Object> child) {
- songs.put(identifier, child);
- }
-
- public TreeNode<Object> getChild(Object id) {
- return songs.get(id);
- }
-
- public Iterator<Entry<Object, TreeNode<Object>>> getChildren() {
- return songs.entrySet().iterator();
- }
-
public Object getData() {
return this;
}
- public TreeNode<Object> getParent() {
- return performer;
- }
-
- public boolean isLeaf() {
- return songs.isEmpty();
- }
-
- public void removeChild(Object id) {
- songs.remove(id);
- }
-
public void setData(Object data) {
}
- public void setParent(TreeNode<Object> parent) {
- performer = (Performer) parent;
- }
-
//
// Album implementation
//
-
/**
* Gets value of id field.
* @return value of id field
@@ -117,9 +81,24 @@
public void addSong(Song song) {
addChild(song.getId(), song);
- song.setParent(this);
}
+ /**
+ * Gets value of performer field.
+ * @return value of performer field
+ */
+ public Performer getPerformer() {
+ return (Performer) getParent();
+ }
+
+ /**
+ * Set a new value for performer field.
+ * @param performer a new value for performer field
+ */
+ public void setPerformer(Performer performer) {
+ setParent(performer);
+ }
+
public String getType() {
return "album";
}
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/AudioLibrary.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/AudioLibrary.java 2008-11-12
17:19:12 UTC (rev 11120)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/AudioLibrary.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -1,65 +1,16 @@
package org.ajax4jsf.bean.tree.rich;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.Map.Entry;
+import org.richfaces.model.TreeNodeImpl;
-import org.richfaces.model.TreeNode;
+public class AudioLibrary extends TreeNodeImpl<Object> {
-public class AudioLibrary implements TreeNode<Object> {
-
/**
* serial version ID
*/
- private static final long serialVersionUID = -1429183678508376974L;
+ private static final long serialVersionUID = -5062513400012852149L;
- private Map<Object, TreeNode<Object>> performers = new
LinkedHashMap<Object, TreeNode<Object>>();
-
-//
-// TreeNode implementation
-//
- public void addChild(Object identifier, TreeNode<Object> child) {
- performers.put(identifier, child);
- }
-
- public TreeNode<Object> getChild(Object id) {
- return performers.get(id);
- }
-
- public Iterator<Entry<Object, TreeNode<Object>>> getChildren() {
- return performers.entrySet().iterator();
- }
-
- public Object getData() {
- return this;
- }
-
- public TreeNode<Object> getParent() {
- return null;
- }
-
- public boolean isLeaf() {
- return performers.isEmpty();
- }
-
- public void removeChild(Object id) {
- performers.remove(id);
- }
-
- public void setData(Object data) {
- }
-
- public void setParent(TreeNode<Object> parent) {
- }
-
-//
-// AudioLibrary implementation
-//
-
public void addPerformer(Performer performer) {
addChild(performer.getId(), performer);
- performer.setParent(this);
}
public String getType() {
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Performer.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Performer.java 2008-11-12
17:19:12 UTC (rev 11120)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Performer.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -1,23 +1,16 @@
package org.ajax4jsf.bean.tree.rich;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.Map.Entry;
+import org.richfaces.model.TreeNodeImpl;
-import org.richfaces.model.TreeNode;
+public class Performer extends TreeNodeImpl<Object> {
-public class Performer implements TreeNode<Object> {
-
/**
* serial version ID
*/
- private static final long serialVersionUID = -4258414186970822017L;
+ private static final long serialVersionUID = -1057006188458974576L;
private long id;
- private Map<Object, TreeNode<Object>> albums = new
LinkedHashMap<Object, TreeNode<Object>>();
private String name;
- private AudioLibrary library;
public Performer() {
setId(System.currentTimeMillis());
@@ -26,43 +19,16 @@
//
// TreeNode implementation
//
- public void addChild(Object identifier, TreeNode<Object> child) {
- albums.put(identifier, child);
- }
- public TreeNode<Object> getChild(Object id) {
- return albums.get(id);
- }
-
- public Iterator<Entry<Object, TreeNode<Object>>> getChildren() {
- return albums.entrySet().iterator();
- }
-
public Object getData() {
return this;
}
- public TreeNode<Object> getParent() {
- return library;
- }
-
- public boolean isLeaf() {
- return albums.isEmpty();
- }
-
- public void removeChild(Object id) {
- albums.remove(id);
- }
-
public void setData(Object data) {
}
- public void setParent(TreeNode<Object> parent) {
- library = (AudioLibrary) parent;
- }
-
//
-// Band implementation
+// Performer implementation
//
/**
@@ -82,22 +48,6 @@
}
/**
- * Gets value of albums field.
- * @return value of albums field
- */
- public Map<Object, TreeNode<Object>> getAlbums() {
- return albums;
- }
-
- /**
- * Set a new value for albums field.
- * @param albums a new value for albums field
- */
- public void setAlbums(Map<Object, TreeNode<Object>> albums) {
- this.albums = albums;
- }
-
- /**
* Gets value of name field.
* @return value of name field
*/
@@ -115,9 +65,24 @@
public void addAlbum(Album album) {
addChild(album.getId(), album);
- album.setParent(this);
}
+ /**
+ * Gets value of library field.
+ * @return value of library field
+ */
+ public AudioLibrary getLibrary() {
+ return (AudioLibrary) getParent();
+ }
+
+ /**
+ * Set a new value for library field.
+ * @param library a new value for library field
+ */
+ public void setLibrary(AudioLibrary library) {
+ setLibrary(library);
+ }
+
public String getType() {
return "performer";
}
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Song.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Song.java 2008-11-12
17:19:12 UTC (rev 11120)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/rich/Song.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -1,12 +1,9 @@
package org.ajax4jsf.bean.tree.rich;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.Map.Entry;
-
import org.richfaces.model.TreeNode;
+import org.richfaces.model.TreeNodeImpl;
-public class Song implements TreeNode<Object> {
+public class Song extends TreeNodeImpl<Object> {
/**
* serial version ID
@@ -15,7 +12,6 @@
private long id;
private String title;
- private Album album;
public Song() {
setId(System.currentTimeMillis());
@@ -33,37 +29,21 @@
throw new UnsupportedOperationException("Songs do not have children");
}
- public Iterator<Entry<Object, TreeNode<Object>>> getChildren() {
- return new LinkedHashMap<Object,
TreeNode<Object>>().entrySet().iterator();
+ public boolean isLeaf() {
+ return true;
}
public Object getData() {
return this;
}
- public TreeNode<Object> getParent() {
- return album;
- }
-
- public boolean isLeaf() {
- return true;
- }
-
- public void removeChild(Object id) {
- // TODO Auto-generated method stub
-
- }
-
public void setData(Object data) {
}
- public void setParent(TreeNode<Object> parent) {
- album = (Album) parent;
- }
-
//
// Song implementation
//
+
/**
* Gets value of id field.
* @return value of id field
@@ -96,6 +76,22 @@
this.title = title;
}
+ /**
+ * Gets value of album field.
+ * @return value of album field
+ */
+ public Album getAlbum() {
+ return (Album) getParent();
+ }
+
+ /**
+ * Set a new value for album field.
+ * @param album a new value for album field
+ */
+ public void setAlbum(Album album) {
+ setAlbum(album);
+ }
+
public String getType() {
return "song";
}
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Album.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Album.java
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Album.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -0,0 +1,66 @@
+package org.ajax4jsf.bean.tree.swing;
+
+import org.richfaces.model.SwingTreeNodeImpl;
+
+public class Album extends SwingTreeNodeImpl {
+
+ private String title;
+ private Integer year;
+
+ /**
+ * Gets value of title field.
+ * @return value of title field
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * Set a new value for title field.
+ * @param title a new value for title field
+ */
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ /**
+ * Gets value of year field.
+ * @return value of year field
+ */
+ public Integer getYear() {
+ return year;
+ }
+
+ /**
+ * Set a new value for year field.
+ * @param year a new value for year field
+ */
+ public void setYear(Integer year) {
+ this.year = year;
+ }
+
+ public void addSong(Song song) {
+ addChild(song);
+ song.setParent(this);
+ }
+
+ /**
+ * Gets value of performer field.
+ * @return value of performer field
+ */
+ public Performer getPerformer() {
+ return (Performer) getParent();
+ }
+
+ /**
+ * Set a new value for performer field.
+ * @param performer a new value for performer field
+ */
+ public void setPerformer(Performer performer) {
+ setParent(performer);
+ }
+
+ public String getType() {
+ return "album";
+ }
+}
Property changes on:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Album.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/AudioLibrary.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/AudioLibrary.java
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/AudioLibrary.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -0,0 +1,15 @@
+package org.ajax4jsf.bean.tree.swing;
+
+import org.richfaces.model.SwingTreeNodeImpl;
+
+public class AudioLibrary extends SwingTreeNodeImpl {
+
+ public void addPerformer(Performer performer) {
+ addChild(performer);
+ performer.setParent(this);
+ }
+
+ public String getType() {
+ return "library";
+ }
+}
Property changes on:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/AudioLibrary.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Performer.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Performer.java
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Performer.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -0,0 +1,49 @@
+package org.ajax4jsf.bean.tree.swing;
+
+import org.richfaces.model.SwingTreeNodeImpl;
+
+public class Performer extends SwingTreeNodeImpl {
+
+ private String name;
+
+ /**
+ * Gets value of library field.
+ * @return value of library field
+ */
+ public AudioLibrary getLibrary() {
+ return (AudioLibrary) getParent();
+ }
+
+ /**
+ * Set a new value for library field.
+ * @param library a new value for library field
+ */
+ public void setLibrary(AudioLibrary library) {
+ setParent(library);
+ }
+
+ /**
+ * Gets value of name field.
+ * @return value of name field
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Set a new value for name field.
+ * @param name a new value for name field
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public void addAlbum(Album album) {
+ addChild(album);
+ album.setParent(this);
+ }
+
+ public String getType() {
+ return "performer";
+ }
+}
Property changes on:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Performer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Song.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Song.java
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Song.java 2008-11-12
17:37:24 UTC (rev 11121)
@@ -0,0 +1,44 @@
+package org.ajax4jsf.bean.tree.swing;
+
+import org.richfaces.model.SwingTreeNodeImpl;
+
+public class Song extends SwingTreeNodeImpl {
+
+ private String title;
+
+ /**
+ * Gets value of album field.
+ * @return value of album field
+ */
+ public Album getAlbum() {
+ return (Album) getParent();
+ }
+
+ /**
+ * Set a new value for album field.
+ * @param album a new value for album field
+ */
+ public void setAlbum(Album album) {
+ setParent(album);
+ }
+
+ /**
+ * Gets value of title field.
+ * @return value of title field
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * Set a new value for title field.
+ * @param title a new value for title field
+ */
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getType() {
+ return "song";
+ }
+}
Property changes on:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/swing/Song.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/audio-library.xml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/resources/audio-library.xml 2008-11-12
17:19:12 UTC (rev 11120)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/resources/audio-library.xml 2008-11-12
17:37:24 UTC (rev 11121)
@@ -1,19 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<audio-library>
<performer>
- <name>Performer</name>
+ <name>Britney Spears</name>
<album>
- <title>Album</title>
- <year>2008</year>
+ <title>Oops! ... I Did It Again</title>
+ <year>2000</year>
<song>
- <title>Song1</title>
- </song>
+ <title>Oops!... I Did It Again</title>
+ </song>
<song>
- <title>Song2</title>
- </song>
+ <title>Stronger</title>
+ </song>
<song>
- <title>Song3</title>
- </song>
+ <title>Don't Go Knockin' on My Door</title>
+ </song>
+ <song>
+ <title>(I Can't Get No) Satisfaction</title>
+ </song>
+ <song>
+ <title>What U See (Is What U Get)</title>
+ </song>
+ <song>
+ <title>Don't Let Me Be the Last to Know</title>
+ </song>
+ <song>
+ <title>Lucky</title>
+ </song>
</album>
</performer>
+ <performer>
+ <name>Christina Aguilera</name>
+ <album>
+ <title>Stripped</title>
+ <year>2002</year>
+ <song>
+ <title>Stripped (Intro)</title>
+ </song>
+ <song>
+ <title>Can't Hold Us Down</title>
+ </song>
+ <song>
+ <title>Walk Away</title>
+ </song>
+ <song>
+ <title>Fighter</title>
+ </song>
+ <song>
+ <title>Infatuation</title>
+ </song>
+ <song>
+ <title>Beautiful</title>
+ </song>
+ </album>
+ </performer>
</audio-library>
\ No newline at end of file
Deleted:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/digester-rules.xml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/resources/digester-rules.xml 2008-11-12
17:19:12 UTC (rev 11120)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/resources/digester-rules.xml 2008-11-12
17:37:24 UTC (rev 11121)
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- 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.
--->
-
-<!DOCTYPE digester-rules
- PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
- "http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
-<digester-rules>
- <pattern value="audio-library">
- <pattern value="performer">
- <object-create-rule
classname="org.ajax4jsf.bean.tree.rich.Performer"/>
- <set-properties-rule/>
- <set-next-rule methodname="addPerformer"/>
- <bean-property-setter-rule pattern="name"/>
- <pattern value="album">
- <object-create-rule classname="org.ajax4jsf.bean.tree.rich.Album"/>
- <set-next-rule methodname="addAlbum"/>
- <set-properties-rule/>
- <bean-property-setter-rule pattern="title"/>
- <bean-property-setter-rule pattern="year"/>
- <pattern value="song">
- <object-create-rule
classname="org.ajax4jsf.bean.tree.rich.Song"/>
- <set-next-rule methodname="addSong"/>
- <set-properties-rule/>
- <bean-property-setter-rule pattern="title"/>
- </pattern>
- </pattern>
- </pattern>
- </pattern>
-</digester-rules>
Copied:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/rich-digester-rules.xml
(from rev 11111,
trunk/test-applications/seleniumTest/richfaces/src/main/resources/digester-rules.xml)
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/resources/rich-digester-rules.xml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/resources/rich-digester-rules.xml 2008-11-12
17:37:24 UTC (rev 11121)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ 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.
+-->
+
+<!DOCTYPE digester-rules
+ PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
+ "http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<digester-rules>
+ <pattern value="audio-library">
+ <pattern value="performer">
+ <object-create-rule
classname="org.ajax4jsf.bean.tree.rich.Performer"/>
+ <set-properties-rule/>
+ <set-next-rule methodname="addPerformer"/>
+ <bean-property-setter-rule pattern="name"/>
+ <pattern value="album">
+ <object-create-rule classname="org.ajax4jsf.bean.tree.rich.Album"/>
+ <set-next-rule methodname="addAlbum"/>
+ <set-properties-rule/>
+ <bean-property-setter-rule pattern="title"/>
+ <bean-property-setter-rule pattern="year"/>
+ <pattern value="song">
+ <object-create-rule
classname="org.ajax4jsf.bean.tree.rich.Song"/>
+ <set-next-rule methodname="addSong"/>
+ <set-properties-rule/>
+ <bean-property-setter-rule pattern="title"/>
+ </pattern>
+ </pattern>
+ </pattern>
+ </pattern>
+</digester-rules>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/swing-digester-rules.xml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/resources/swing-digester-rules.xml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/resources/swing-digester-rules.xml 2008-11-12
17:37:24 UTC (rev 11121)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ 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.
+-->
+
+<!DOCTYPE digester-rules
+ PUBLIC "-//Jakarta Apache //DTD digester-rules XML V1.0//EN"
+ "http://jakarta.apache.org/commons/digester/dtds/digester-rules.dtd">
+<digester-rules>
+ <pattern value="audio-library">
+ <pattern value="performer">
+ <object-create-rule
classname="org.ajax4jsf.bean.tree.swing.Performer"/>
+ <set-properties-rule/>
+ <set-next-rule methodname="addPerformer"/>
+ <bean-property-setter-rule pattern="name"/>
+ <pattern value="album">
+ <object-create-rule classname="org.ajax4jsf.bean.tree.swing.Album"/>
+ <set-next-rule methodname="addAlbum"/>
+ <set-properties-rule/>
+ <bean-property-setter-rule pattern="title"/>
+ <bean-property-setter-rule pattern="year"/>
+ <pattern value="song">
+ <object-create-rule
classname="org.ajax4jsf.bean.tree.swing.Song"/>
+ <set-next-rule methodname="addSong"/>
+ <set-properties-rule/>
+ <bean-property-setter-rule pattern="title"/>
+ </pattern>
+ </pattern>
+ </pattern>
+ </pattern>
+</digester-rules>
Property changes on:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/swing-digester-rules.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native