Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

We all know the famous syndication formats like RSS/Atom and also their advantages.
So how about exposing our Iview contents as RSS/Atom, which is really useful to keep our users uptodate of the content changes?

In this blog I will show you how to expose Custom IView contents as RSS 2.0 format using ROME open source library (https://rome.dev.java.net/)

ROME libraries support all popular RSS and ATOM formats.


Download the latest rome library (rome-1.0RC1.jar) and also latest jdom library (jdom.jar) from http://www.jdom.org/  and put them in distPORTAL-INFprivatelib folder of your project.


For our example I will implement an AbstractPortalComponent which is a news component with RSS functionality.

Here are the screenshots of what I have implemented:

Shows an Iview with RSS tray option

News Iview


Clicking the above MyRss tray option shows the RSS of the news Iview

News IviewRss XML

So adding the RSS link to your favourite RSS Client shows news updates from your Iview. The Rss link in the above example is http://wdfv00196150b:53000http://www.sdn.sap.com/irj/servlet/prt/portal/prtmode/rss/prtroot/myrsspro...

RssOwl 

 

Here is the code:

  • " + newsBean.title + "
  • "); } } /* *Adds the MyRss tray option to Iview tray */ private String addTrayOptionJSCode(String name, String function, String iViewID) { StringBuffer code = new StringBuffer(); code.append("


7 Comments