Difference between revisions of "Developing Portlets with GWT"
From Gcube Wiki
Line 26: | Line 26: | ||
Then you can develop your portlet as you wish... | Then you can develop your portlet as you wish... | ||
− | FYI, there is a toolkit for eclipse that provides developers with a GUI | + | FYI, there is a toolkit for eclipse that provides developers with a GUI so as to design their '''gwt modules'''. |
− | However, it' | + | However, it's not free. If you wish to see its demos, click [http://www.instantiations.com/gwtdesigner/ here]. |
+ | |||
+ | You can find useful information about the '''G'''oogle ''''W''''eb ''''T''''oolkit on its official site: [http://code.google.com/webtoolkit/] | ||
===Create a jsr 168 portlet=== | ===Create a jsr 168 portlet=== |
Revision as of 14:14, 1 March 2007
How to write a portlet with the aim of GWT.
Contents
Pre-development Actions
Modifying Tomcat
- Replace $CATALINA_HOME/webapps/gridsphere/WEB-INF/CustomPortal/layouts/TemplateLayout.xml with the corresponding one found here.
- Include gwt.js and script.html files found here in $CATALINA_HOME/webapps/gridsphere/html directory.
Modifying Gridpshere Home
If you want you can also apply the respective changes to gridsphere's home directory. This can be useful if, for some reason, you want to redeploy gridsphere.
Installing GWT
- Download the latest version of GWT from here.
- Uzip the file.
- Set environmntal variable: GWT_HOME=<the name of the folder where you unpacked gwt files>
How to create a gwt-portlet
Create a gwt project
In order to create a gwt project, you must execute:
cd $GRIDPSHERE_HOME/projects mkdir <module_dir_name> cd <module_dir_name> $GWT_HOME/projectCreator -eclipse MyProject
Then you can develop your portlet as you wish... FYI, there is a toolkit for eclipse that provides developers with a GUI so as to design their gwt modules. However, it's not free. If you wish to see its demos, click here.
You can find useful information about the Google 'W'eb 'T'oolkit on its official site: [1]
Create a jsr 168 portlet
In oder to create an empty portlet project, you must execute:
cd $GRIDPSHERE_HOME/ ant new-project