Trouble publishing a RSS feed
oggmeister May 28, 2008 11:39 AMHello,
I'm trying to publish a RSS feed. Therefore I've written the following rss.xml file:
<?xml version="1.0" encoding="utf-8" ?>
<rss version="0.91" xmlns:ui="http://java.sun.com/jsf/facelets">
<channel>
<title>Hixmen</title>
<link>http://localhost:8080/hixmen</link>
<description>Die letzten 10 offiziellen Foreneinträge</description>
<language>de-de</language>
<ui:repeat value="#{rssFeed.entries}" var="topic">
<item>
<title>#{topic.title}</title>
<link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=#{topic.id}</link>
</item>
</ui:repeat>
</channel>
</rss>When I request that file through my browser (Firefox) by calling http://localhost:8080/hixmen/forum/rss.seam, Firefox allows me to subscribe to the feed. But when I try to access it afterwards, it says that it cannot load the feed (invalid URL). The generated response seams to be sound, though:
<?xml version="1.0" encoding="utf-8" ?> <rss version="0.91"> <channel> <title>Hixmen</title> <link>http://localhost:8080/hixmen</link> <description>Die letzten 10 offiziellen Foreneinträge</description> <language>de-de</language> <item> <title>dfbhvDB</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=79</link> </item> <item> <title>ödkjheprowf3ghtd</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=73</link> </item> <item> <title>asdadad</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=67</link> </item> <item> <title>Titel aus DB</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=61</link> </item> <item> <title>fnhgsc</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=55</link> </item> <item> <title>dfbhvDB</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=49</link> </item> <item> <title>ödkjheprowf3ghtd</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=43</link> </item> <item> <title>asdadad</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=37</link> </item> <item> <title>Titel aus DB</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=31</link> </item> <item> <title>fnhgsc</title> <link>http://localhost:8080/hixmen/forum/viewTopic.seam?topicId=25</link> </item> </channel> </rss>
I guess this has something to do with the feed's URL pointing to rss.seam instead of rss.xml. But when I access http://localhost:8080/hixmen/forum/rss.xml, Seam does not intercept the request and the XML file is return as it is (including the ui:repeat control).
What can I do?
Thanks for any help!