Seam SVN: r9093 - trunk/examples/rss/src/org/jboss/seam/rss.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-09-22 05:31:47 -0400 (Mon, 22 Sep 2008)
New Revision: 9093
Modified:
trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
Log:
Fixed 1 -> i typo in data iteration
Modified: trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 08:48:03 UTC (rev 9092)
+++ trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 09:31:47 UTC (rev 9093)
@@ -27,8 +27,8 @@
entry.setAuthor("Author " + i);
entry.setLink("Link " + i);
entry.setPublished(new Date(0));
- entry.setSummary("Summary " + 1);
- entry.setTitle("Title " + 1);
+ entry.setSummary("Summary <b>" + i + "</b>");
+ entry.setTitle("Title " + i);
entry.setUid(UUID.randomUUID().toString());
entry.setUpdated(new Date());
entries.add(entry);
17 years, 3 months
Seam SVN: r9092 - in trunk: build and 2 other directories.
by seam-commits@lists.jboss.org
Author: danielc.roth
Date: 2008-09-22 04:48:03 -0400 (Mon, 22 Sep 2008)
New Revision: 9092
Modified:
trunk/build.xml
trunk/build/ci.build.xml
trunk/examples/build.xml
trunk/examples/rss/
Log:
JBSEAM-3423
Modified: trunk/build/ci.build.xml
===================================================================
--- trunk/build/ci.build.xml 2008-09-22 08:46:50 UTC (rev 9091)
+++ trunk/build/ci.build.xml 2008-09-22 08:48:03 UTC (rev 9092)
@@ -31,6 +31,7 @@
<deploySnapshot pom="${mail.pom}" jar="${lib.dir}/jboss-seam-mail.jar" srcjar="${lib.dir}/src/jboss-seam-mail-sources.jar"/>
<deploySnapshot pom="${pdf.pom}" jar="${lib.dir}/jboss-seam-pdf.jar" srcjar="${lib.dir}/src/jboss-seam-pdf-sources.jar"/>
<deploySnapshot pom="${excel.pom}" jar="${lib.dir}/jboss-seam-excel.jar" srcjar="${lib.dir}/src/jboss-seam-excel-sources.jar"/>
+ <deploySnapshot pom="${rss.pom}" jar="${lib.dir}/jboss-seam-rss.jar" srcjar="${lib.dir}/src/jboss-seam-rss-sources.jar"/>
<deploySnapshot pom="${remoting.pom}" jar="${lib.dir}/jboss-seam-remoting.jar" srcjar="${lib.dir}/src/jboss-seam-remoting-sources.jar"/>
<deploySnapshot pom="${ui.pom}" jar="${lib.dir}/jboss-seam-ui.jar" srcjar="${lib.dir}/src/jboss-seam-ui-sources.jar"/>
</target>
Modified: trunk/build.xml
===================================================================
--- trunk/build.xml 2008-09-22 08:46:50 UTC (rev 9091)
+++ trunk/build.xml 2008-09-22 08:48:03 UTC (rev 9092)
@@ -414,6 +414,7 @@
<cleanexample name="spring" />
<cleanexample name="itext" />
<cleanexample name="excel" />
+ <cleanexample name="rss" />
<cleanexample name="messages" />
<cleanexample name="numberguess" />
<cleanexample name="registration" />
@@ -448,6 +449,7 @@
<undeployexample name="seamspace" />
<undeployexample name="itext" />
<undeployexample name="excel" />
+ <undeployexample name="rss" />
<undeployexample name="mail" />
<undeployexample name="ui" />
<!--<undeployexample name="spring"" /> />-->
@@ -488,6 +490,7 @@
<testexample name="seampay" />
<testexample name="itext" />
<testexample name="excel" />
+ <testexample name="rss" />
<testexample name="hibernate" />
<testexample name="jpa" />
<testexample name="quartz" />
@@ -582,6 +585,7 @@
<include name="dvdstore/**/*" />
<include name="itext/**/*" />
<include name="excel/**/*" />
+ <include name="rss/**/*" />
<include name="seambay/**/*" />
<include name="seampay/**/*" />
<include name="seamspace/**/*" />
Modified: trunk/examples/build.xml
===================================================================
--- trunk/examples/build.xml 2008-09-22 08:46:50 UTC (rev 9091)
+++ trunk/examples/build.xml 2008-09-22 08:48:03 UTC (rev 9092)
@@ -160,6 +160,13 @@
<include name="jboss-seam-excel.jar" if="seam.excel.lib" />
<include name="jxl.jar" if="seam.excel.lib" />
</fileset>
+
+ <!-- Seam rss, and dependencies -->
+ <fileset id="seam.rss.jar" dir="${lib.dir}">
+ <include name="jboss-seam-rss.jar" if="seam.rss.lib" />
+ <include name="yarfraw.jar" if="seam.rss.lib" />
+ <include name="commons-lang.jar" if="seam.rss.lib" />
+ </fileset>
<!-- Seam debug, with required dependencies -->
<fileset id="seam.debug.jar" dir="${lib.dir}">
@@ -471,6 +478,7 @@
<exclude name="jboss-seam-mail.jar" />
<exclude name="jboss-seam-pdf.jar" />
<exclude name="jboss-seam-excel.jar" />
+ <exclude name="jboss-seam-rss.jar" />
</fileset>
<path refid="build.classpath.extras" />
</path>
@@ -576,6 +584,7 @@
<fileset refid="seam.ioc.jar" />
<fileset refid="seam.mail.jar" />
<fileset refid="seam.excel.jar" />
+ <fileset refid="seam.rss.jar" />
<fileset refid="seam.pdf.jar" />
<fileset refid="seam.ui.jar" />
<fileset refid="facelets.jar" />
Property changes on: trunk/examples/rss
___________________________________________________________________
Name: svn:ignore
- test-build
+ test-build
dist
exploded-archives
17 years, 3 months
Seam SVN: r9091 - in trunk/examples/rss: src/org/jboss/seam/rss and 1 other directory.
by seam-commits@lists.jboss.org
Author: danielc.roth
Date: 2008-09-22 04:46:50 -0400 (Mon, 22 Sep 2008)
New Revision: 9091
Removed:
trunk/examples/rss/dist/
trunk/examples/rss/exploded-archives/
Modified:
trunk/examples/rss/
trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
Log:
Property changes on: trunk/examples/rss
___________________________________________________________________
Name: svn:ignore
+ test-build
Modified: trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 08:17:27 UTC (rev 9090)
+++ trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 08:46:50 UTC (rev 9091)
@@ -1,37 +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;
-@Name("rssTest")
+@Name("rss")
@Scope(ScopeType.SESSION)
public class RSSTest
{
private Feed feed;
- private List<Entry> entries;
@Create
public void create()
{
feed = new Feed();
- entries = new ArrayList<Entry>();
- for (int i = 0; i < 5; i++) {
+ 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 " + 1);
+ entry.setTitle("Title " + 1);
+ 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() {
+
+ public Feed getFeed()
+ {
return feed;
}
-
- public List<Entry> getEntries() {
- return entries;
- }
}
17 years, 3 months
Seam SVN: r9090 - trunk/examples/rss/src/org/jboss/seam/rss.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-09-22 04:17:27 -0400 (Mon, 22 Sep 2008)
New Revision: 9090
Modified:
trunk/examples/rss/src/org/jboss/seam/rss/Entry.java
trunk/examples/rss/src/org/jboss/seam/rss/Feed.java
trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
Log:
Fixed package names & typo
Modified: trunk/examples/rss/src/org/jboss/seam/rss/Entry.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/Entry.java 2008-09-22 07:58:47 UTC (rev 9089)
+++ trunk/examples/rss/src/org/jboss/seam/rss/Entry.java 2008-09-22 08:17:27 UTC (rev 9090)
@@ -1,4 +1,4 @@
-package nik.rss;
+package org.jboss.seam.rss;
import java.util.Date;
Modified: trunk/examples/rss/src/org/jboss/seam/rss/Feed.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/Feed.java 2008-09-22 07:58:47 UTC (rev 9089)
+++ trunk/examples/rss/src/org/jboss/seam/rss/Feed.java 2008-09-22 08:17:27 UTC (rev 9090)
@@ -1,6 +1,5 @@
-package nik.rss;
+package org.jboss.seam.rss;
-import java.util.ArrayList;
import java.util.Date;
import java.util.List;
Modified: trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 07:58:47 UTC (rev 9089)
+++ trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 08:17:27 UTC (rev 9090)
@@ -1,11 +1,9 @@
-package org.jboss.seam.excel;
+package org.jboss.seam.rss;
-import java.util.LinkedList;
+import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.ScopeType;
-import org.jboss.seam.annotations.AutoCreate;
-import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
@@ -24,7 +22,7 @@
entries = new ArrayList<Entry>();
for (int i = 0; i < 5; i++) {
Entry entry = new Entry();
- entires.add(entry);
+ entries.add(entry);
}
}
17 years, 3 months
Seam SVN: r9089 - trunk/src/rss/org/jboss/seam/rss/ui.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-09-22 03:58:47 -0400 (Mon, 22 Sep 2008)
New Revision: 9089
Modified:
trunk/src/rss/org/jboss/seam/rss/ui/UIEntry.java
Log:
summaryFormat support
Modified: trunk/src/rss/org/jboss/seam/rss/ui/UIEntry.java
===================================================================
--- trunk/src/rss/org/jboss/seam/rss/ui/UIEntry.java 2008-09-22 07:58:25 UTC (rev 9088)
+++ trunk/src/rss/org/jboss/seam/rss/ui/UIEntry.java 2008-09-22 07:58:47 UTC (rev 9089)
@@ -4,35 +4,21 @@
import java.text.SimpleDateFormat;
import java.util.Date;
-import org.jboss.seam.contexts.Contexts;
import javax.faces.context.FacesContext;
+import org.jboss.seam.contexts.Contexts;
+
import yarfraw.core.datamodel.ChannelFeed;
-import yarfraw.core.datamodel.Content;
import yarfraw.core.datamodel.ItemEntry;
-import yarfraw.core.datamodel.Link;
import yarfraw.core.datamodel.Person;
import yarfraw.core.datamodel.Text;
import yarfraw.core.datamodel.Text.TextType;
/**
- *atomEntry =
- element atom:entry {
- atomCommonAttributes,
- (atomAuthor*
- & atomCategory*
- & atomContent?
- & atomContributor*
- & atomId
- & atomLink*
- & atomPublished?
- & atomRights?
- & atomSource?
- & atomSummary?
- & atomTitle
- & atomUpdated
- & extensionElement*)
- }
+ *atomEntry = element atom:entry { atomCommonAttributes, (atomAuthor* &
+ * atomCategory* & atomContent? & atomContributor* & atomId & atomLink* &
+ * atomPublished? & atomRights? & atomSource? & atomSummary? & atomTitle &
+ * atomUpdated & extensionElement*) }
*/
public class UIEntry extends SyndicationComponent
@@ -44,6 +30,7 @@
private String link;
private String author;
private String summary;
+ private TextType summaryFormat = TextType.html;
private Date published;
private Date updated;
@@ -53,7 +40,6 @@
return COMPONENT_TYPE;
}
-
@SuppressWarnings("unchecked")
@Override
public void encodeBegin(FacesContext facesContext) throws IOException
@@ -65,16 +51,19 @@
itemEntry.setTitle(getTitle());
itemEntry.addLink(getLink());
String author = getAuthor();
- if (author != null) {
+ if (author != null)
+ {
Person authorPerson = new Person();
authorPerson.setName(author);
itemEntry.addAuthorOrCreator(authorPerson);
}
- itemEntry.setDescriptionOrSummary(getSummary());
+ Text summary = new Text(summaryFormat);
+ summary.setText(getSummary());
+ itemEntry.setDescriptionOrSummary(summary);
itemEntry.setUpdatedDate(getUpdated(), new SimpleDateFormat(ATOM_DATE_FORMAT));
itemEntry.setPubDate(getPublished(), new SimpleDateFormat(ATOM_DATE_FORMAT));
-
- channelFeed.addItem(itemEntry);
+
+ channelFeed.addItem(itemEntry);
}
public String getTitle()
@@ -82,43 +71,36 @@
return (String) valueOf("title", title);
}
-
public void setTitle(String title)
{
this.title = title;
}
-
public String getLink()
{
return (String) valueOf("link", link);
}
-
public void setLink(String link)
{
this.link = link;
}
-
public String getAuthor()
{
return (String) valueOf("author", author);
}
-
public void setAuthor(String author)
{
this.author = author;
}
-
public String getSummary()
{
return (String) valueOf("summary", summary);
}
-
public void setSummary(String summary)
{
this.summary = summary;
@@ -129,34 +111,39 @@
return (Date) valueOf("published", published);
}
-
public void setPublished(Date published)
{
this.published = published;
}
-
public Date getUpdated()
{
return (Date) valueOf("updated", updated);
}
-
public void setUpdated(Date updated)
{
this.updated = updated;
}
-
public String getUid()
{
return (String) valueOf("uid", uid);
}
-
public void setUid(String uid)
{
this.uid = uid;
- }
+ }
+ public TextType getSummaryFormat()
+ {
+ return summaryFormat;
+ }
+
+ public void setSummaryFormat(TextType summaryFormat)
+ {
+ this.summaryFormat = summaryFormat;
+ }
+
}
17 years, 3 months
Seam SVN: r9088 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-09-22 03:58:25 -0400 (Mon, 22 Sep 2008)
New Revision: 9088
Added:
trunk/doc/Seam_Reference_Guide/en-US/Rss.xml
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Dependencies.xml
trunk/doc/Seam_Reference_Guide/en-US/master.xml
Log:
RSS documentation
Modified: trunk/doc/Seam_Reference_Guide/en-US/Dependencies.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Dependencies.xml 2008-09-22 07:24:28 UTC (rev 9087)
+++ trunk/doc/Seam_Reference_Guide/en-US/Dependencies.xml 2008-09-22 07:58:25 UTC (rev 9088)
@@ -163,6 +163,21 @@
<para>Required when using Seam's <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> features</para>
</entry>
</row>
+
+ <row>
+ <entry>
+ <para><literal>jboss-seam-rss.jar</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Required when using Seam's RSS generation features</para>
+ </entry>
+ </row>
<row>
<entry>
@@ -595,7 +610,7 @@
<para>war</para>
</entry>
<entry>
- <para>JExcelAPI Library</para>
+ <para>JExcelAPI library</para>
</entry>
</row>
@@ -618,6 +633,162 @@
</tgroup>
</table>
</section>
+
+ <section id="dependencies.rss">
+ <title>Seam RSS support</title>
+
+ <table>
+ <title>Seam RSS Dependencies</title>
+
+ <tgroup cols="4">
+ <colspec colnum="1" colwidth="4*" />
+ <colspec colnum="2" colwidth="2*" />
+ <colspec colnum="3" colwidth="3*" />
+ <colspec colnum="4" colwidth="5*" />
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+ <entry align="center">
+ <para>Type</para>
+ </entry>
+ <entry align="center">
+ <para>Scope</para>
+ </entry>
+ <entry align="center">
+ <para>Notes</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry>
+ <para><literal>yarfraw.jar</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>YARFRAW RSS library</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>JAXB</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>JAXB XML parsing libraries</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>http-client.jar</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Apache HTTP Client libraies</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>commons-io</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Apache commons IO library</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>commons-lang</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Apache commons lang library</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>commons-codec</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Apache commons codec library</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>commons-collections</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Apache commons collections library</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>jboss-seam-rss.jar</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Seam RSS core library</para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
<section>
Added: trunk/doc/Seam_Reference_Guide/en-US/Rss.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Rss.xml (rev 0)
+++ trunk/doc/Seam_Reference_Guide/en-US/Rss.xml 2008-09-22 07:58:25 UTC (rev 9088)
@@ -0,0 +1,261 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
+
+<chapter id="rss">
+ <title>RSS support</title>
+ <para>
+ It is now easy to integrate RSS feeds in Seam through the
+ <ulink url="http://yarfraw.sourceforge.net/">YARFRAW</ulink>
+ library. The RSS support is currently in the state of "tech preview"
+ in the current release.
+ </para>
+
+ <section id="rss.installation">
+ <title>Installation</title>
+ <para>
+ To enable RSS support, include the <literal>jboss-seam-rss.jar</literal>
+ in your applications <literal>WEB-INF/lib</literal> directory. The RSS
+ library also has some dependent libraries that should be placed in the
+ same directory. See <xref linkend="dependencies.rss"/> for a list of
+ libraries to include.
+ </para>
+ <para>
+ The Seam RSS support requires the use of Facelets as the view
+ technology.
+ </para>
+ </section>
+ <section id="rss.usage">
+ <title>Generating feeds</title>
+ <para>
+ The <literal>examples/rss</literal> project contains an example of
+ RSS support in action. It demonstrates proper deployment
+ packaging, and it shows the exposed functionality.
+ </para>
+ <para>
+ A feed is a xhtml-page that consist of a feed and a list of nested
+ entry items.
+ </para>
+ <programlisting role="XML">
+ <![CDATA[
+ <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>
+ ]]>
+ </programlisting>
+ </section>
+
+ <section id="rss.feeds">
+ <title>Feeds</title>
+ <para>
+ Feeds are the top-level entities that describe the properties of the
+ information source. It contains zero or more nested entries.
+ </para>
+ <informaltable>
+ <tgroup cols="2">
+ <colspec colnum="1" colwidth="1*" />
+ <colspec colnum="2" colwidth="3*" />
+ <tbody>
+ <row>
+ <entry valign="top">
+ <para>
+ <literal><r:feed></literal>
+ </para>
+ </entry>
+ <entry valign="top">
+ <para>
+ <emphasis>Attributes</emphasis>
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>uid</literal>
+ —An optional unique feed id. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>title</literal>
+ —The title of the feed. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>subtitle</literal>
+ —The subtitle of the feed. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>updated</literal>
+ —When was the feed updated? The value is a date.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>link</literal>
+ —The link to the source of the information.
+ The value is a string.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <emphasis>Child elemenents</emphasis>
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>Zero or more feed entries</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <emphasis>Facets</emphasis>
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>none</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </section>
+
+ <section id="rss.entries">
+ <title>Entries</title>
+ <para>
+ Entries are the "headlines" in the feed.
+ </para>
+ <informaltable>
+ <tgroup cols="2">
+ <colspec colnum="1" colwidth="1*" />
+ <colspec colnum="2" colwidth="3*" />
+ <tbody>
+ <row>
+ <entry valign="top">
+ <para>
+ <literal><r:feed></literal>
+ </para>
+ </entry>
+ <entry valign="top">
+ <para>
+ <emphasis>Attributes</emphasis>
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>uid</literal>
+ —An optional unique entry id. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>title</literal>
+ —The title of the entry. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>link</literal>
+ —A link to the item. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>author</literal>
+ —The author of the story. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>summary</literal>
+ —The body of the story. The value is a string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>summaryFormat</literal>
+ —The format of the body of the story. The value is a string
+ and valid values are "text" and "html". Defaults to "html".
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>published</literal>
+ —When was the story first published? The value is a date.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>updated</literal>
+ —When was the story updated? The value is a date.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <emphasis>Child elemenents</emphasis>
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>none</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <emphasis>Facets</emphasis>
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>none</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </section>
+
+ <section id="rss.links">
+ <title>Links and further documentation</title>
+ <para>
+ The core of the RSs functionality is based on the YARFRAW library
+ which can be found on http://yarfraw.sourceforge.net/ and most
+ features and possible limitations are inherited from here.
+ </para>
+ <para>
+ For details on the ATOM 1.0 format, have a look at
+ <ulink url="http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html">
+ the specs</ulink>
+ </para>
+ <para>
+ For details on the RSS 2.0 format, have a look at
+ <ulink url="http://cyber.law.harvard.edu/rss/rss.html">the specs</ulink>
+ </para>
+ </section>
+</chapter>
Modified: trunk/doc/Seam_Reference_Guide/en-US/master.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/master.xml 2008-09-22 07:24:28 UTC (rev 9087)
+++ trunk/doc/Seam_Reference_Guide/en-US/master.xml 2008-09-22 07:58:25 UTC (rev 9088)
@@ -23,6 +23,7 @@
<xi:include href= "Text.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href= "Itext.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href= "Excel.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <xi:include href= "Rss.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href= "Mail.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href= "Jms.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href= "Cache.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
17 years, 3 months
Seam SVN: r9087 - branches/community/Seam_2_0/seam-gen.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-09-22 03:24:28 -0400 (Mon, 22 Sep 2008)
New Revision: 9087
Modified:
branches/community/Seam_2_0/seam-gen/build.xml
Log:
last commit message should have read:
use none rather than validate for hibernate.hbm2ddl.auto when database exists
the validate flag causes more problems than a care to say
Modified: branches/community/Seam_2_0/seam-gen/build.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/build.xml 2008-09-22 07:23:06 UTC (rev 9086)
+++ branches/community/Seam_2_0/seam-gen/build.xml 2008-09-22 07:24:28 UTC (rev 9087)
@@ -1244,7 +1244,7 @@
</target>
<target name="settings" depends="init-properties"
- description="Print the settings">
+ description="Print the settings">
<echo message="Java project workspace: ${workspace.home}"/>
<echo message="JBoss home: ${jboss.home}"/>
<echo message="IceFaces: ${icefaces}"/>
17 years, 3 months
Seam SVN: r9086 - trunk/seam-gen.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-09-22 03:23:06 -0400 (Mon, 22 Sep 2008)
New Revision: 9086
Modified:
trunk/seam-gen/build.xml
Log:
use none rather than validate for hibernate.hbm2ddl.auto when database exists
the validate flag causes more problems than a care to say
Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml 2008-09-22 07:21:33 UTC (rev 9085)
+++ trunk/seam-gen/build.xml 2008-09-22 07:23:06 UTC (rev 9086)
@@ -54,7 +54,7 @@
<equals arg1="${database.drop}" arg2="n"/>
</and>
</condition>
- <condition property="hibernate.hbm2ddl.auto" value="validate">
+ <condition property="hibernate.hbm2ddl.auto" value="none">
<and>
<equals arg1="${database.exists}" arg2="y"/>
<equals arg1="${database.drop}" arg2="n"/>
17 years, 3 months
Seam SVN: r9085 - branches/community/Seam_2_0/seam-gen.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2008-09-22 03:21:33 -0400 (Mon, 22 Sep 2008)
New Revision: 9085
Modified:
branches/community/Seam_2_0/seam-gen/build.xml
Log:
use none rather than update as default for hibernate.hbm2ddl.auto
this flag causes more problems than I care to say
Modified: branches/community/Seam_2_0/seam-gen/build.xml
===================================================================
--- branches/community/Seam_2_0/seam-gen/build.xml 2008-09-22 05:52:13 UTC (rev 9084)
+++ branches/community/Seam_2_0/seam-gen/build.xml 2008-09-22 07:21:33 UTC (rev 9085)
@@ -54,7 +54,7 @@
<equals arg1="${database.drop}" arg2="n"/>
</and>
</condition>
- <condition property="hibernate.hbm2ddl.auto" value="validate">
+ <condition property="hibernate.hbm2ddl.auto" value="none">
<and>
<equals arg1="${database.exists}" arg2="y"/>
<equals arg1="${database.drop}" arg2="n"/>
17 years, 3 months
Seam SVN: r9084 - in trunk/examples: rss and 11 other directories.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-09-22 01:52:13 -0400 (Mon, 22 Sep 2008)
New Revision: 9084
Added:
trunk/examples/rss/
trunk/examples/rss/build.xml
trunk/examples/rss/dist/
trunk/examples/rss/exploded-archives/
trunk/examples/rss/exploded-archives/jboss-seam-rss.ear/
trunk/examples/rss/exploded-archives/jboss-seam-rss.jar/
trunk/examples/rss/exploded-archives/jboss-seam-rss.war/
trunk/examples/rss/readme.txt
trunk/examples/rss/resources/
trunk/examples/rss/resources/META-INF/
trunk/examples/rss/resources/META-INF/MANIFEST.MF
trunk/examples/rss/resources/META-INF/application.xml
trunk/examples/rss/resources/META-INF/ejb-jar.xml
trunk/examples/rss/resources/META-INF/jboss-app.xml
trunk/examples/rss/resources/META-INF/persistence.xml
trunk/examples/rss/resources/WEB-INF/
trunk/examples/rss/resources/WEB-INF/components.xml
trunk/examples/rss/resources/WEB-INF/faces-config.xml
trunk/examples/rss/resources/WEB-INF/pages.xml
trunk/examples/rss/resources/WEB-INF/web.xml
trunk/examples/rss/resources/components.properties
trunk/examples/rss/resources/seam.properties
trunk/examples/rss/src/
trunk/examples/rss/src/org/
trunk/examples/rss/src/org/jboss/
trunk/examples/rss/src/org/jboss/seam/
trunk/examples/rss/src/org/jboss/seam/rss/
trunk/examples/rss/src/org/jboss/seam/rss/Entry.java
trunk/examples/rss/src/org/jboss/seam/rss/Feed.java
trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
trunk/examples/rss/src/org/jboss/seam/rss/test/
trunk/examples/rss/src/org/jboss/seam/rss/test/testng.xml
trunk/examples/rss/view/
trunk/examples/rss/view/index.html
trunk/examples/rss/view/rss.xhtml
Log:
RSS example
Added: trunk/examples/rss/build.xml
===================================================================
--- trunk/examples/rss/build.xml (rev 0)
+++ trunk/examples/rss/build.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+
+<project name="rss" default="deploy" basedir=".">
+ <!-- Example name -->
+ <property name="Name" value="RSS generation document example"/>
+ <property name="example.name" value="jboss-seam-rss"/>
+
+ <!-- Libraries -->
+ <property name="seam.ui.lib" value="yes"/>
+ <property name="seam.rss.lib" value="yes"/>
+ <property name="seam.debug.lib" value="yes"/>
+ <property name="facelets.lib" value="yes"/>
+
+ <import file="../build.xml"/>
+
+ <path id="test.classpath.extras">
+ <fileset refid="seam.rss.jar" />
+ </path>
+
+ <path id="build.classpath.extras">
+ <fileset refid="seam.rss.jar" />
+ </path>
+
+
+</project>
+
Added: trunk/examples/rss/readme.txt
===================================================================
--- trunk/examples/rss/readme.txt (rev 0)
+++ trunk/examples/rss/readme.txt 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,5 @@
+Seam RSS Example
+==================
+This example demonstrates the Seam RSS functionality. It runs on both JBoss AS and Tomcat.
+
+example.name=rss
\ No newline at end of file
Added: trunk/examples/rss/resources/META-INF/MANIFEST.MF
===================================================================
--- trunk/examples/rss/resources/META-INF/MANIFEST.MF (rev 0)
+++ trunk/examples/rss/resources/META-INF/MANIFEST.MF 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,4 @@
+Manifest-Version: 1.0
+Ant-Version: Apache Ant 1.6.5
+Created-By: 1.5.0_14-b03 (Sun Microsystems Inc.)
+
Added: trunk/examples/rss/resources/META-INF/application.xml
===================================================================
--- trunk/examples/rss/resources/META-INF/application.xml (rev 0)
+++ trunk/examples/rss/resources/META-INF/application.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application 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/application_5.xsd"
+ version="5">
+
+ <display-name>Seam RSS Example</display-name>
+
+ <module>
+ <web>
+ <web-uri>jboss-seam-rss.war</web-uri>
+ <context-root>/seam-rss</context-root>
+ </web>
+ </module>
+
+ <module>
+ <ejb>jboss-seam-rss.jar</ejb>
+ </module>
+ <module>
+ <ejb>jboss-seam.jar</ejb>
+ </module>
+</application>
Added: trunk/examples/rss/resources/META-INF/ejb-jar.xml
===================================================================
--- trunk/examples/rss/resources/META-INF/ejb-jar.xml (rev 0)
+++ trunk/examples/rss/resources/META-INF/ejb-jar.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -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: trunk/examples/rss/resources/META-INF/jboss-app.xml
===================================================================
--- trunk/examples/rss/resources/META-INF/jboss-app.xml (rev 0)
+++ trunk/examples/rss/resources/META-INF/jboss-app.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE jboss-app
+ PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
+<jboss-app>
+ <loader-repository>
+ seam.jboss.org:loader=seam-rss
+ </loader-repository>
+</jboss-app>
Added: trunk/examples/rss/resources/META-INF/persistence.xml
===================================================================
--- trunk/examples/rss/resources/META-INF/persistence.xml (rev 0)
+++ trunk/examples/rss/resources/META-INF/persistence.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -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:/DefaultDS</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: trunk/examples/rss/resources/WEB-INF/components.xml
===================================================================
--- trunk/examples/rss/resources/WEB-INF/components.xml (rev 0)
+++ trunk/examples/rss/resources/WEB-INF/components.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -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.1.xsd
+ http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.1.xsd
+ http://jboss.com/products/seam/document http://jboss.com/products/seam/document-2.1.xsd
+ http://jboss.com/products/seam/excel http://jboss.com/products/seam/excel-2.1.xsd
+ http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
+
+
+ <core:init debug="true" jndi-pattern="@jndiPattern@" />
+
+</components>
Added: trunk/examples/rss/resources/WEB-INF/faces-config.xml
===================================================================
--- trunk/examples/rss/resources/WEB-INF/faces-config.xml (rev 0)
+++ trunk/examples/rss/resources/WEB-INF/faces-config.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2"
+ 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_1_2.xsd">
+ <!-- Facelets support -->
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+
+</faces-config>
Added: trunk/examples/rss/resources/WEB-INF/pages.xml
===================================================================
--- trunk/examples/rss/resources/WEB-INF/pages.xml (rev 0)
+++ trunk/examples/rss/resources/WEB-INF/pages.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -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: trunk/examples/rss/resources/WEB-INF/web.xml
===================================================================
--- trunk/examples/rss/resources/WEB-INF/web.xml (rev 0)
+++ trunk/examples/rss/resources/WEB-INF/web.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -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" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
+ <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>
\ No newline at end of file
Added: trunk/examples/rss/resources/components.properties
===================================================================
--- trunk/examples/rss/resources/components.properties (rev 0)
+++ trunk/examples/rss/resources/components.properties 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,3 @@
+# The pattern in components.xml is replaced by an application server specific value in the ant build. This value is used for running tests
+
+jndiPattern \#{ejbName}/local
\ No newline at end of file
Added: trunk/examples/rss/resources/seam.properties
===================================================================
Added: trunk/examples/rss/src/org/jboss/seam/rss/Entry.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/Entry.java (rev 0)
+++ trunk/examples/rss/src/org/jboss/seam/rss/Entry.java 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,84 @@
+package nik.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: trunk/examples/rss/src/org/jboss/seam/rss/Feed.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/Feed.java (rev 0)
+++ trunk/examples/rss/src/org/jboss/seam/rss/Feed.java 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,76 @@
+package nik.rss;
+
+import java.util.ArrayList;
+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: trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java (rev 0)
+++ trunk/examples/rss/src/org/jboss/seam/rss/RSSTest.java 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,39 @@
+package org.jboss.seam.excel;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.AutoCreate;
+import org.jboss.seam.annotations.Begin;
+import org.jboss.seam.annotations.Create;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+@Name("rssTest")
+(a)Scope(ScopeType.SESSION)
+public class RSSTest
+{
+ private Feed feed;
+ private List<Entry> entries;
+
+ @Create
+ public void create()
+ {
+ feed = new Feed();
+ entries = new ArrayList<Entry>();
+ for (int i = 0; i < 5; i++) {
+ Entry entry = new Entry();
+ entires.add(entry);
+ }
+ }
+
+ public Feed getFeed() {
+ return feed;
+ }
+
+ public List<Entry> getEntries() {
+ return entries;
+ }
+
+}
Added: trunk/examples/rss/src/org/jboss/seam/rss/test/testng.xml
===================================================================
--- trunk/examples/rss/src/org/jboss/seam/rss/test/testng.xml (rev 0)
+++ trunk/examples/rss/src/org/jboss/seam/rss/test/testng.xml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,10 @@
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+
+<suite name="RSS" verbose="2" parallel="false">
+
+ <test name="RSS Tests">
+ <classes>
+ </classes>
+ </test>
+
+</suite>
\ No newline at end of file
Added: trunk/examples/rss/view/index.html
===================================================================
--- trunk/examples/rss/view/index.html (rev 0)
+++ trunk/examples/rss/view/index.html 2008-09-22 05:52:13 UTC (rev 9084)
@@ -0,0 +1,5 @@
+<html>
+<head>
+ <meta http-equiv="Refresh" content="0; URL=rss.seam">
+</head>
+</html>
\ No newline at end of file
Added: trunk/examples/rss/view/rss.xhtml
===================================================================
--- trunk/examples/rss/view/rss.xhtml (rev 0)
+++ trunk/examples/rss/view/rss.xhtml 2008-09-22 05:52:13 UTC (rev 9084)
@@ -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>
17 years, 3 months