Friday, October 06, 2006

Google Gadgets Portlet 0.1 Released

Google Gadgets Portlet enables you to display Google Gadgets on a portlet.

To deploy this portlet:
1) Download googlegadgets.war
2) Deploy googlegadgets.war(For how to deploy portlet, see portal server's document)

If you want to add a new Gadget as a portlet, please add a new entry(like the following) to portlet.xml.


<portlet id="DateTimeGoogleGadget">
<portlet-name>DateTimeGoogleGadget</portlet-name>
<display-name>Date &amp; Time</display-name>
<description>Google Gadgets: Data and Time Gadget</description>
<portlet-class>jp.sf.pal.googlegadgets.GoogleGadgetsPortlet</portlet-class>
<expiration-cache>-1</expiration-cache>
<init-param>
<name>jp.sf.pal.googlegadgets.title</name>
<value>Date &amp; Time</value>
</init-param>
<init-param>
<name>jp.sf.pal.googlegadgets.code</name>
<value>&lt;script src="http://gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/datetime.xml&amp;up_color=blue&amp;synd=open&amp;w=320&amp;h=136&amp;title=Date+%26+Time&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"&gt;&lt;/script&gt;</value>
</init-param>
<init-param>
<name>jp.sf.pal.googlegadgets.gadgetUrl</name>
<value>http://gmodules.com/ig/creator?synd=open&amp;url=http://www.google.com/ig/modules/datetime.xml</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<supported-locale>ja</supported-locale>
<resource-bundle>jp.sf.pal.googlegadgets.resources.GoogleGadgetsResources</resource-bundle>
<portlet-info>
<title>Date &amp; Time</title>
<short-title>Date &amp; Time</short-title>
<keywords>Date,Time,Google,Gadgets</keywords>
</portlet-info>
</portlet>


"jp.sf.pal.googlegadgets.title" is Portlet's title. "jp.sf.pal.googlegadgets.code" is a code of Gadget. "jp.sf.pal.googlegadgets.gadgetUrl" is an URL to modify the gadget code.

If you create an interesting Gadget entry, please send it to me :)

0 Comments:

Post a Comment

<< Home