Wednesday Mar 26, 2008

Yahoo Suggest and Search Portlet in Portlet-Repository

Another addition to the porlet-repository is the Suggest and Search Portlet . It is a JSR286 portlet that provides search related suggestions as the user types words and search results  from the web (using Ajax and serveResource)based on Yahoo Contextual Search and  Yahoo Web Search Service API.  The portlet makes REST client calls to the services, parses the results in XML /JSON format and displays them to the user. 

This has been tested on the Open Source Portlet Container 2.0. Check this blog post and  the wiki page for more details.

 

Thursday Jun 21, 2007

Syndicating Portlets to iGoogle

With the advent of portals such as iGoogle, Netvibes, and MS Live, syndication of gadgets/widgets/portlets has become quite the rage. Even enterprise portals such as Websphere and Weblogic have jumped on the bandwagon and now allow running iGoogle gadgets from within their portals. Similarly they also claim to support syndication of their JSR 168 portlets to other portals such as iGoogle.

With the Sun Portal Server we are not far behind. You can easily use a Google gadget portlet wrapper to run Google gadgets in your portal. More about it in a future post. I'll focus on syndication in this post.

Of course we support WSRP that allows syndication of portlets between two WSRP-compliant portals. But portals such as iGoogle and Netvibes don't comply with standards such as JSR 168 or WSRP. They have their own mechanisms for doing things. But no reason to worry. Sun Portal Server by design provides a REST-like interface (please note the usage of "-like" to avoid any confusion) to access the portal components. This interface can be used to create a quick and dirty script to achieve syndication of portlets from the Sun Portal Server to iGoogle or another portal.

Here's a screenshot of the Developer sample of the Sun Portal as it looks in anonymous user mode. Now look at this screenshot of iGoogle with the same portlets running within iGoogle. This was done with a DHTML/Javascript/Ajax combination and is very easy to do. There are however limitations to this approach. The script does not support portlets with multiple page views, and also does not support editing of portlet preferences from iGoogle. There are better ways to achieve syndication and overcome these limitations. I'll cover those in a future post.

Because of the above mentioned limitations I'm reluctant to post the script I used on this blog. But if you are interested then leave a comment or ping me at jai dot suri at sun. I'll send you the script and information about how to use it. 

About

atul

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today