Wicket FeedResource
Wicket WebPage extension for creation of RSS or Atom Feeds
First, create a FeedResource that generates the atom/rss feed using the ROME library:
public class MyFeedResource extends FeedResource { protected SyndFeed getFeed() { //construct and return the feed } }
Next, add the FeedResource to your page with an autodiscovery link so that web browsers will automatically pick up your feed and display the RSS feed icon.
public class MyPage extends WebPage { public MyPage() { add(FeedResource.autodiscoveryLink(new ResourceReference("myFeed") { protected Resource newResource() { return new MyFeedResource(); } })); } }
Original component published by Ryan Sonnek:
http://www.jroller.com/wireframe/entry/wicket_feedresource