Friday, June 8, 2007

How-to create a RSS page with Wicket and ROME

clipped from

Wicket FeedPage

I've been adding RSS feeds to my Wicket application based on the example Wicket RssPage found on the wiki, and thought it was very restrictive in what it could do. There are a ton of Java libraries out there to build rss feeds, and this RssPage was yet another solution.

I wanted to leverage other libraries and avoid duplicating all of that markup in my own component, so I built a new FeedPage that uses the Rome Java library to take care of all the details. Now I can handle any format of RSS or Atom, along with several media extensions without changing any markup files.