Difference between revisions of "Developing gCube Portlets Guide"

From Gcube Wiki
Jump to: navigation, search
(This Guide will lead you to development of a gCube Portlet)
(This Guide will lead you to development of a gCube Portlet)
Line 15: Line 15:
 
[[File:NewDWP.jpg]]
 
[[File:NewDWP.jpg]]
  
** in the Wizard next step we are going to add support for Porlet 2.0. and specify Tomcat 5.5 as Target Runtime (Optional)
+
* In the Wizard next step we are going to add support for Porlet 2.0. and specify Tomcat 5.5 as Target Runtime (Optional)
  
 
[[File:NewPorlet.jpg]]
 
[[File:NewPorlet.jpg]]
 +
 +
* Finally in the Wizard last step we change "Web Content" to "war" as Content Directory (To have ETICS and GWT2 Projects compatibility)
 +
 +
=== Portlet creation ===
 +
 +
To create your portlet using eclipse, click on your newly created project > New -> Other -> JavaPortlet.
 +
 +
[[File:NewPortlet.jpg]]

Revision as of 14:32, 25 June 2010

This Guide will lead you to development of a gCube Portlet

Prerequisites

  • IDE: Eclipse 3.4+ J2EE with the following plugins installed

Creating an empty Portlet Project

  • Create a new Dynamic Web Project using eclipse

NewDWP.jpg

  • In the Wizard next step we are going to add support for Porlet 2.0. and specify Tomcat 5.5 as Target Runtime (Optional)

NewPorlet.jpg

  • Finally in the Wizard last step we change "Web Content" to "war" as Content Directory (To have ETICS and GWT2 Projects compatibility)

Portlet creation

To create your portlet using eclipse, click on your newly created project > New -> Other -> JavaPortlet.

NewPortlet.jpg