1 Reply Latest reply on Oct 27, 2006 9:21 AM by Louis Coetzee

    Creating RSS feed ?

    Louis Coetzee Apprentice


      I have been trying to create a rss feed publishing things (new elements) along the line of the example in the jboss-seam blog example. For some very weird reason I am not able to get Seam to inject/unwrap when the rss news feed page is accessed.

      my rss page looks something like this(rssNewsFeed.rss):

      <rss version="0.91"
       <title>This is a RSS feed </title>
       <description>This is a description of the rss feed</description>
       <ui:repeat value="#{rssFeed.entries}" var="content">
       <h:outputText value="#{content.contentDescription.description}"/>

      with my manager component:
      public class RSSFeed {
       RSS rssBean;
       private List<Content> entries;
       public RSSFeed listAllNewContent() throws NAPPublicException{
       entries = rssBean.listAllNewContent();
       return this;
       public List<Content> getEntries() {
       return entries;
       public void setEntries(List<Content> entries) {
       this.entries = entries;

      I am able to subscribe to the rss feed using a normal aggregator, but for some reason when the page is accessed Seam does not intercept and outject/unwrap the RSSFeed component.

      Is there something else I must set to get the rss page populated (with the dynamic stuff) when it is accessed ? It is almost as if Seam/tomcat/jboss does not know it has to intercept and do its things when the page is retrieved.

      I am sure it is something stupid (it is very similar to the blog example). Any suggestions would be appreciated.



        • 1. Re: Creating RSS feed ?
          Louis Coetzee Apprentice

          Strange how writing things down helps the mind :-)

          I see in the blog example that the faces servlet is mapped to:

           <servlet-name>Faces Servlet</servlet-name>

          while I use:
           <servlet-name>Faces Servlet</servlet-name>

          and the important one


          My rss file had an rss extension, with the above in mind the rss extension never got the Faces servlet involved. Renaming my file to have an xhtml extension solved the problem.