Seam FrameworkCommunity Documentation
It is now easy to integrate RSS feeds in Seam through the YARFRAW library. The RSS support is currently in the state of "tech preview" in the current release.
To enable RSS support, include the jboss-seam-rss.jar
in your applications WEB-INF/lib
directory. The RSS
library also has some dependent libraries that should be placed in the
same directory. See Section 39.2.6, “Seam RSS support” for a list of
libraries to include.
The Seam RSS support requires the use of Facelets as the view technology.
The examples/rss
project contains an example of
RSS support in action. It demonstrates proper deployment
packaging, and it shows the exposed functionality.
A feed is a xhtml-page that consist of a feed and a list of nested entry items.
<r:feed
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:r="http://jboss.org/schema/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>
Feeds are the top-level entities that describe the properties of the information source. It contains zero or more nested entries.
|
Attributes
Child elements
Facets
|
Entries are the "headlines" in the feed.
|
Attributes
Child elements
Facets
|
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.