InstallingPortlets

Uploaded from authorPOINTLite
Views:
 
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

Installing Portlets: 

Installing Portlets Marcus Christie Portal Developer Extreme! Lab

We’ll grab a portlet and stick it in GridSphere: 

We’ll grab a portlet and stick it in GridSphere http://portletswap.com We’ll get their RSS Portlet https://portlet-repository.dev.java.net/ Another portlet repository

News Portlet: 

News Portlet Download the zip file Copy the newsportlet.war file into the Tomcat’s webapps/ directory. Tomcat automatically unzips the war file We should be able to see it in the GridSphere/Administration tab

News Portlet Modifications: 

News Portlet Modifications gridsphere-portlet.xml copy from another portlet, e.g. cp ../jobsubmit-portlet/WEB-INF/gridsphere-portlet.xml WEB-INF/ web.xml add the portlet mapping. Copy from jobsubmit-portlet/WEB-INF/web.xml to newsportlet/WEB-INF/web.xml and modify Set display name to “News Portlet” Change the URL pattern to match the context name of the News Portlet i.e., from jobsubmit-portlet to newsportlet Add the gridsphere-ui-tags.jar to WEB-INF/lib again, just copy the one in jobsubmit-portlet/WEB-INF/lib Now we can “reload” the News Portlet in the Administration tab in GridSphere

Adding the Portlet to GridSphere’s Layout: 

Adding the Portlet to GridSphere’s Layout Go to Administration > Groups, and create new group Name: “misc”, Description: “Misc. Portlets” Select the News Portlet, click Save Enter “misc” for layout descriptor, click “Create Template Layout” Go to Welcome tab and add yourself to the misc group

Creating your News Page: 

Creating your News Page Go to the Misc tab To configure, click the pencil icon and enter a RSS url. Here’s a CNN.com RSS feed url: http://rss.cnn.com/rss/cnn_topstories.rss

Enabling Create New Account: 

Enabling Create New Account Set the mail properties Create an account Add yourself to the misc group