Combining any tiny free RSS library like http:// rsslib4j.sourceforge.net/ will get it done and infact the AJAX update is so much fun with AjaxSelfUpdatingBehavior
using rsslib4j.sourceforge.net here is a sample code:
import java.util.Iterator;
import java.util.LinkedList;
import org.gnu.stealthp.rsslib.RSSChannel ;
import org.gnu.stealthp.rsslib.RSSException;
import org.gnu.stealthp.rsslib.RSSHandler;
import org.gnu.stealthp.rsslib.RSSImage;
import org.gnu.stealthp.rsslib.RSSItem;
import org.gnu.stealthp.rsslib.RSSParser ;
...
RSSHandler handler = new RSSHandler();
try {
RSSParser.parseXmlFile("index.rdf",handler,false);
} catch (RSSException ex) {
ex.printStackTrace();
}
RSSChannel channel = handler.getRSSChannel();
LinkedList list = channel.getItems();
RSSImage image = channel.getRSSImage();
for(Object ji : list){
RSSItem item = (RSSItem)ji;
System.out.println(item.getTitle());
System.out.println(item.getLink());
System.out.println(item.getDescription());
}
/**
use list for model
Create links from getTitle() and getLink()//Ajaxify getDescription
Use AjaxSelfUpdatingBehavior to re-parse and update the List Model
**/
dem i love wicket :)
On 5/24/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
I'm also interested in a wicket RSS panel, but i'm finding it hard to understand the dojo example.
personally, i think it would be easier to use a library like rome (https://rome.dev.java.net/) and just add each rss element to a wicket list view. it's really not that difficult to parse an existing rss feed.
Anyone else have some ideas?On 5/23/06, Martijn Dashorst < [EMAIL PROTECTED]> wrote:Check out the wicket-contrib-dojo-examples
The students have built a dojo auto update RSS reader.
MartijnOn 5/23/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:Okay I am lazy again parsing RSS....Please does anyone have a free RSS panel to share :)
Something i can simply input an RSS Link and then it will render out the Links?
Thanks :)
--
Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org