In order to add one new portlet in the tDar portal. Some basic procedures are required to follow:
- Create a class which inherits from "org.gridlab.gridsphere.provider.event.jsr.ActionFormEvent";
- It's better to create a separated project for the new porlet; in the project, we have
- a directory 'src'
- a directory 'webapp', under which some important configuration files are, like portlet.xml, layout.xml.
- build.properties
- build.xml: configurations about the compiling, deployment etc. (probably manual changes are required)
- Make relative configurations
- webapp/WEB-INF/portlet.xml:
- description information about the portlet class
- conf/gridsphere/layout.xml
- description information about the portlet class
- build.xml:
- add the build information about the new portlet
- Run 'ant deploy', and restart tomcat.
A good idea might be to create a code template for a new porlet.
No comments:
Post a Comment