[seam-commits] Seam SVN: r14489 - in branches/community/Seam_2_3/examples-ee6: rss and 34 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Apr 3 11:07:12 EDT 2012
Author: maschmid
Date: 2012-04-03 11:07:09 -0400 (Tue, 03 Apr 2012)
New Revision: 14489
Added:
branches/community/Seam_2_3/examples-ee6/rss/
branches/community/Seam_2_3/examples-ee6/rss/pom.xml
branches/community/Seam_2_3/examples-ee6/rss/readme.txt
branches/community/Seam_2_3/examples-ee6/rss/rss-ear/
branches/community/Seam_2_3/examples-ee6/rss/rss-ear/pom.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/
branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/main/
branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/main/application/
branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/main/application/META-INF/
branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/main/application/META-INF/jboss-deployment-structure.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/pom.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Entry.java
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Feed.java
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/RSSTest.java
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/ejb-jar.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/persistence.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/seam.properties
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/pom.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/rss/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/rss/test/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/rss/test/xml/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/rss/test/xml/SeamXMLRSSTest.java
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources-ftest/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources-ftest/testng.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/WEB-INF/
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/WEB-INF/components.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/seam.properties
branches/community/Seam_2_3/examples-ee6/rss/rss-web/
branches/community/Seam_2_3/examples-ee6/rss/rss-web/pom.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/components.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/faces-config.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/pages.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/web.xml
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/index.html
branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/rss.xhtml
Log:
add rss example to the ee6 examples
Added: branches/community/Seam_2_3/examples-ee6/rss/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/pom.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/pom.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>examples-ee6</artifactId>
+ <groupId>org.jboss.seam</groupId>
+ <version>2.3.0.Beta2-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.seam.examples-ee6</groupId>
+ <artifactId>rss</artifactId>
+ <packaging>pom</packaging>
+ <name>Rss Example (EE6)</name>
+
+ <modules>
+ <module>rss-ejb</module>
+ <module>rss-web</module>
+ <module>rss-ear</module>
+ <module>rss-tests</module>
+ </modules>
+
+ <properties>
+ <example.name>rss</example.name>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <version>${project.version}</version>
+ <type>ejb</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-web</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ear</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
Added: branches/community/Seam_2_3/examples-ee6/rss/readme.txt
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/readme.txt (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/readme.txt 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,29 @@
+Seam RSS Example
+================
+
+This example demonstrates the Seam RSS functionality. It runs on both JBoss AS
+as an EAR and Tomcat with Embedded JBoss as a WAR.
+
+To deploy the example to JBossAS, follow these steps:
+
+* In the example root directory run:
+
+ mvn clean package
+
+* Set JBOSS_HOME environment property.
+
+* In the rss-ear directory run:
+
+ mvn jboss:hard-deploy
+
+* Open this URL in a web browser: http://localhost:8080/seam-rss
+
+To deploy the example to Tomcat with Embedded JBoss, follow these steps:
+
+* In the example root directory run:
+
+ mvn clean package -Ptomcat
+
+* Deploy the resulting WAR from rss-web/target directory to Tomcat manually.
+
+* Open this URL in a web browser: http://localhost:8080/jboss-seam-rss
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ear/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ear/pom.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ear/pom.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>rss</artifactId>
+ <groupId>org.jboss.seam.examples-ee6</groupId>
+ <version>2.3.0.Beta2-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ear</artifactId>
+ <packaging>ear</packaging>
+ <name>Rss EAR Module (EE6)</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-web</artifactId>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <type>ejb</type>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <type>ejb</type>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>seam-rss</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ear-plugin</artifactId>
+ <configuration>
+ <version>6</version>
+ <defaultLibBundleDir>lib</defaultLibBundleDir>
+ <!-- Exclude eclipse generated application.xml and manually modified jboss-app.xml during mvn build -->
+ <earSourceExcludes>**/application.xml, **/jboss-app.xml</earSourceExcludes>
+ <!-- use maven generated application.xml instead -->
+ <generateApplicationXml>true</generateApplicationXml>
+ <filtering>true</filtering>
+ <modules>
+ <webModule>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-web</artifactId>
+ <contextRoot>/seam-rss</contextRoot>
+ <bundleFileName>rss-web.war</bundleFileName>
+ </webModule>
+ <ejbModule>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <bundleFileName>rss-ejb.jar</bundleFileName>
+ </ejbModule>
+ <ejbModule>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <bundleFileName>jboss-seam.jar</bundleFileName>
+ </ejbModule>
+ </modules>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>exploded</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>package</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ear</artifactId>
+ <type>ear</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.ear</outputDirectory>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-web</artifactId>
+ <type>war</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.ear/${example.name}-web.war</outputDirectory>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.ear/${example.name}-ejb.jar</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/main/application/META-INF/jboss-deployment-structure.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/main/application/META-INF/jboss-deployment-structure.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ear/src/main/application/META-INF/jboss-deployment-structure.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,10 @@
+<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
+ <deployment>
+ <dependencies>
+ <module name="org.dom4j" export="true"/>
+ <module name="com.sun.xml.bind" export="true"/>
+ <module name="org.apache.commons.collections" export="true"/>
+ <module name="javax.faces.api" export="true"/>
+ </dependencies>
+ </deployment>
+</jboss-deployment-structure>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/pom.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/pom.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>rss</artifactId>
+ <groupId>org.jboss.seam.examples-ee6</groupId>
+ <version>2.3.0.Beta2-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <packaging>ejb</packaging>
+ <name>Rss EJB Module (EE6)</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <type>ejb</type>
+ <exclusions>
+ <exclusion>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate.javax.persistence</groupId>
+ <artifactId>hibernate-jpa-2.0-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-entitymanager</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.spec.javax.servlet</groupId>
+ <artifactId>jboss-servlet-api_3.0_spec</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.spec.javax.ejb</groupId>
+ <artifactId>jboss-ejb-api_3.1_spec</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.spec.javax.faces</groupId>
+ <artifactId>jboss-jsf-api_2.0_spec</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Entry.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Entry.java (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Entry.java 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,84 @@
+package org.jboss.seam.rss;
+
+import java.util.Date;
+
+public class Entry
+{
+ private String uid;
+ private String title;
+ private String link;
+ private String author;
+ private String summary;
+ private Date published;
+ private Date updated;
+
+ public String getUid()
+ {
+ return uid;
+ }
+
+ public void setUid(String uid)
+ {
+ this.uid = uid;
+ }
+
+ public String getTitle()
+ {
+ return title;
+ }
+
+ public void setTitle(String title)
+ {
+ this.title = title;
+ }
+
+ public String getLink()
+ {
+ return link;
+ }
+
+ public void setLink(String link)
+ {
+ this.link = link;
+ }
+
+ public String getAuthor()
+ {
+ return author;
+ }
+
+ public void setAuthor(String author)
+ {
+ this.author = author;
+ }
+
+ public String getSummary()
+ {
+ return summary;
+ }
+
+ public void setSummary(String summary)
+ {
+ this.summary = summary;
+ }
+
+ public Date getPublished()
+ {
+ return published;
+ }
+
+ public void setPublished(Date published)
+ {
+ this.published = published;
+ }
+
+ public Date getUpdated()
+ {
+ return updated;
+ }
+
+ public void setUpdated(Date updated)
+ {
+ this.updated = updated;
+ }
+}
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Feed.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Feed.java (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/Feed.java 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,75 @@
+package org.jboss.seam.rss;
+
+import java.util.Date;
+import java.util.List;
+
+public class Feed
+{
+ private String uid;
+ private String title;
+ private String subtitle;
+ private Date updated;
+ private String link;
+ private List<Entry> entries;
+
+ public String getUid()
+ {
+ return uid;
+ }
+
+ public void setUid(String uid)
+ {
+ this.uid = uid;
+ }
+
+ public String getTitle()
+ {
+ return title;
+ }
+
+ public void setTitle(String title)
+ {
+ this.title = title;
+ }
+
+ public String getSubtitle()
+ {
+ return subtitle;
+ }
+
+ public void setSubtitle(String subtitle)
+ {
+ this.subtitle = subtitle;
+ }
+
+ public Date getUpdated()
+ {
+ return updated;
+ }
+
+ public void setUpdated(Date updated)
+ {
+ this.updated = updated;
+ }
+
+ public String getLink()
+ {
+ return link;
+ }
+
+ public void setLink(String link)
+ {
+ this.link = link;
+ }
+
+ public List<Entry> getEntries()
+ {
+ return entries;
+ }
+
+ public void setEntries(List<Entry> entries)
+ {
+ this.entries = entries;
+ }
+
+}
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/RSSTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/RSSTest.java (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/java/org/jboss/seam/rss/RSSTest.java 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,49 @@
+package org.jboss.seam.rss;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.UUID;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Create;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+ at Name("rss")
+ at Scope(ScopeType.SESSION)
+public class RSSTest
+{
+ private Feed feed;
+
+ @Create
+ public void create()
+ {
+ feed = new Feed();
+ List<Entry> entries = new ArrayList<Entry>();
+ for (int i = 0; i < 5; i++)
+ {
+ Entry entry = new Entry();
+ entry.setAuthor("Author " + i);
+ entry.setLink("Link " + i);
+ entry.setPublished(new Date(0));
+ entry.setSummary("Summary <b>" + i + "</b>");
+ entry.setTitle("Title <i>" + i + "</i>");
+ entry.setUid(UUID.randomUUID().toString());
+ entry.setUpdated(new Date());
+ entries.add(entry);
+ }
+ feed.setEntries(entries);
+ feed.setLink("Link Feed");
+ feed.setSubtitle("Subtitle feed");
+ feed.setTitle("Title Feed");
+ feed.setUid(UUID.randomUUID().toString());
+ feed.setUpdated(new Date());
+ }
+
+ public Feed getFeed()
+ {
+ return feed;
+ }
+
+}
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/ejb-jar.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/ejb-jar.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/ejb-jar.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+ version="3.0">
+
+ <interceptors>
+ <interceptor>
+ <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+ </interceptor>
+ </interceptors>
+
+ <assembly-descriptor>
+ <interceptor-binding>
+ <ejb-name>*</ejb-name>
+ <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+ </interceptor-binding>
+ </assembly-descriptor>
+</ejb-jar>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/persistence.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/persistence.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/META-INF/persistence.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+ <persistence-unit name="userDatabase">
+ <provider>org.hibernate.ejb.HibernatePersistence</provider>
+ <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
+ <properties>
+ <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+ <property name="hibernate.show_sql" value="true"/>
+ <property name="jboss.entity.manager.factory.jndi.name"
+ value="java:/seamrssEntityManagerFactory"/>
+ </properties>
+ </persistence-unit>
+</persistence>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/seam.properties
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/seam.properties (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-ejb/src/main/resources/seam.properties 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1 @@
+
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-tests/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-tests/pom.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-tests/pom.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>rss</artifactId>
+ <groupId>org.jboss.seam.examples-ee6</groupId>
+ <version>2.3.0.Beta2-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-tests</artifactId>
+ <name>Rss Integration Tests Module (EE6)</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <classifier>jdk15</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <type>ejb</type>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <type>ejb</type>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.spec.javax.faces</groupId>
+ <artifactId>jboss-jsf-api_2.0_spec</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.seleniumhq.selenium.server</groupId>
+ <artifactId>selenium-server</artifactId>
+ <classifier>standalone</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.seleniumhq.selenium.client-drivers</groupId>
+ <artifactId>selenium-java-client-driver</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>functional-tests</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ <filtering>true</filtering>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>ftest-jbossas</id>
+ <properties>
+ <example.context.path>/seam-rss</example.context.path>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>selenium-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>failsafe-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>ftest-tomcat</id>
+ <properties>
+ <example.context.path>/jboss-seam-rss</example.context.path>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>selenium-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>failsafe-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/rss/test/xml/SeamXMLRSSTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/rss/test/xml/SeamXMLRSSTest.java (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/java/org/jboss/seam/example/rss/test/xml/SeamXMLRSSTest.java 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,67 @@
+package org.jboss.seam.example.rss.test.xml;
+
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertTrue;
+
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.xml.namespace.NamespaceContext;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.xpath.XPathExpressionException;
+
+import org.jboss.seam.example.common.test.xml.NodeCondition;
+import org.jboss.seam.example.common.test.xml.SeamXMLTest;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.xml.sax.SAXException;
+
+public class SeamXMLRSSTest extends SeamXMLTest
+{
+ public static final String HOME_PAGE = "/rss.seam";
+ public static final String HOME_PAGE_TITLE = "Title Feed";
+ public static final String TITLE_XPATH = "/feed/title";
+
+ public static final String ATOM_NS_URI = "http://www.w3.org/2005/Atom";
+
+ private Document doc;
+
+ @BeforeMethod
+ public void setDocument() throws IOException, SAXException
+ {
+ doc = db.parse(BROWSER_URL + CONTEXT_PATH + HOME_PAGE);
+ }
+
+ /**
+ * Verifies that example deploys and has title
+ *
+ * @throws XPathExpressionException If XPath expression cannot be compiled or
+ * executed
+ */
+ @Test
+ public void testRSSTitle() throws XPathExpressionException
+ {
+ List<Node> list = evaluateXPath(doc.getDocumentElement(), TITLE_XPATH);
+ assertEquals("There is only on title", 1, list.size());
+ assertTrue("Document title equals to \"Title Feed\"", evaluateCondition(list, titleCondition));
+ }
+
+ private final NodeCondition titleCondition = new NodeCondition()
+ {
+
+ public boolean match(Node node)
+ {
+ if (node instanceof Element)
+ {
+ Element element = (Element) node;
+ return HOME_PAGE_TITLE.equals(element.getTextContent());
+ }
+ return false;
+ }
+ };
+}
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/WEB-INF/components.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/WEB-INF/components.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/WEB-INF/components.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,16 @@
+<components xmlns="http://jboss.com/products/seam/components"
+ xmlns:excel="http://jboss.com/products/seam/excel"
+ xmlns:core="http://jboss.com/products/seam/core"
+ xmlns:framework="http://jboss.com/products/seam/framework"
+ xmlns:document="http://jboss.com/products/seam/document"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.3.xsd
+ http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.3.xsd
+ http://jboss.com/products/seam/document http://jboss.com/products/seam/document-2.3.xsd
+ http://jboss.com/products/seam/excel http://jboss.com/products/seam/excel-2.3.xsd
+ http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.3.xsd">
+
+
+ <core:init debug="true" jndi-pattern="#{ejbName}/local" />
+
+</components>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/seam.properties
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/seam.properties (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources/seam.properties 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,3 @@
+#debug is explicitly disabled in test to avoid JBIDE-3623
+#Thu Dec 31 16:24:37 CET 2009
+org.jboss.seam.core.init.debug=false
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources-ftest/testng.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources-ftest/testng.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources-ftest/testng.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,27 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software is
+ distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details. You should have received a copy of the GNU
+ Lesser General Public License along with this software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="RSS example" verbose="2" parallel="false">
+ <test name="rss_tests">
+ <parameter name="PROPERTY_FILE" value="" />
+ <parameter name="xml.namespace.aware" value="false" />
+ <classes>
+ <class name="org.jboss.seam.example.rss.test.xml.SeamXMLRSSTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: branches/community/Seam_2_3/examples-ee6/rss/rss-tests/src/test/resources-ftest/testng.xml
___________________________________________________________________
Added: svn:executable
+ *
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-web/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-web/pom.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-web/pom.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>rss</artifactId>
+ <groupId>org.jboss.seam.examples-ee6</groupId>
+ <version>2.3.0.Beta2-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-web</artifactId>
+ <packaging>war</packaging>
+ <name>Rss Web Module (EE6)</name>
+
+ <properties>
+ <!-- filtering property for components.xml -->
+ <jndiPattern>java:app/rss-ejb/#{ejbName}</jndiPattern>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <type>ejb</type>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <type>ejb</type>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ui</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-jul</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-rss</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>apache-httpclient</groupId>
+ <artifactId>commons-httpclient</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-debug</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <webResources>
+ <resource>
+ <directory>src/main/webapp</directory>
+ <filtering>true</filtering>
+ </resource>
+ </webResources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>tomcat</id>
+ <properties>
+ <!-- filtering property for components.xml -->
+ <jndiPattern>#{ejbName}/local</jndiPattern>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam.examples-ee6.rss</groupId>
+ <artifactId>rss-ejb</artifactId>
+ <type>ejb</type>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <type>ejb</type>
+ <scope>compile</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>com.thoughtworks.xstream</groupId>
+ <artifactId>xstream</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3_min</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>jboss-seam-rss</finalName>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/components.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/components.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/components.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,16 @@
+<components xmlns="http://jboss.com/products/seam/components"
+ xmlns:excel="http://jboss.com/products/seam/excel"
+ xmlns:core="http://jboss.com/products/seam/core"
+ xmlns:framework="http://jboss.com/products/seam/framework"
+ xmlns:document="http://jboss.com/products/seam/document"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.3.xsd
+ http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.3.xsd
+ http://jboss.com/products/seam/document http://jboss.com/products/seam/document-2.3.xsd
+ http://jboss.com/products/seam/excel http://jboss.com/products/seam/excel-2.3.xsd
+ http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.3.xsd">
+
+
+ <core:init debug="true" jndi-pattern="@jndiPattern@" />
+
+</components>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/faces-config.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="2.1"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">
+
+</faces-config>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/pages.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/pages.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<pages xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd" >
+
+
+
+</pages>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/WEB-INF/web.xml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ version="3.0">
+ <listener>
+ <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
+ </listener>
+ <filter>
+ <filter-name>Seam Filter</filter-name>
+ <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>Seam Filter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Seam Resource Servlet</servlet-name>
+ <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Seam Resource Servlet</servlet-name>
+ <url-pattern>/seam/resource/*</url-pattern>
+ </servlet-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.seam</url-pattern>
+ </servlet-mapping>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>webAppRootKey</param-name>
+ <param-value>seam-rss</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <session-config>
+ <session-timeout>10</session-timeout>
+ </session-config>
+</web-app>
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/index.html
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/index.html (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/index.html 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,5 @@
+<html>
+<head>
+ <meta http-equiv="Refresh" content="0; URL=rss.seam">
+</head>
+</html>
\ No newline at end of file
Added: branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/rss.xhtml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/rss.xhtml (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/rss/rss-web/src/main/webapp/rss.xhtml 2012-04-03 15:07:09 UTC (rev 14489)
@@ -0,0 +1,21 @@
+<r:feed
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:r="http://jboss.com/products/seam/rss"
+ title="#{rss.feed.title}"
+ uid="#{rss.feed.uid}"
+ subtitle="#{rss.feed.subtitle}"
+ updated="#{rss.feed.updated}"
+ link="#{rss.feed.link}">
+ <ui:repeat value="#{rss.feed.entries}" var="entry">
+ <r:entry
+ uid="#{entry.uid}"
+ title="#{entry.title}"
+ link="#{entry.link}"
+ author="#{entry.author}"
+ summary="#{entry.summary}"
+ published="#{entry.published}"
+ updated="#{entry.updated}"
+ />
+ </ui:repeat>
+</r:feed>
More information about the seam-commits
mailing list