Article

coolguys's picture

Importing your own Portlets in UserApp

Author Info

10 December 2007 - 11:47am
Submitted by: coolguys

article
Reads:

1801

Score:
3
3
1
 
Comments:

0

Problem

A Forum reader recently asked:

"I don't know how to import my own portlets, and I couldn't find any documentation on that."

And here's the response from John DaSilva ...

Solution

I'm assuming that you understand the way J2EE Applications are packaged into an archive. Here are the basic steps to follow:

1. Make a backup of your IDM WAR file.

2. Your portlets must be JSR 168-compliant, and they must not be using any of the Portlet Implementation provided by Novell. They must use only the APIs defined in the specification.

3. Package your portlets and supporting classes into a jar file, or more than one if needed.

4. You will need to rebuild the WAR by taking the default and placing your JAR files in the WEB-INF/lib

5. Edit the portlet.xml file to add your portlet definitions to the file. Be very careful in editing this file - it must remain valid to the specification. I would suggest adding your portlets to the end of the file. Make sure none of your names conflict with the existing names.

6. Deploy the WAR.

7. Go into Portlet Admin in the User Application and register your portlets.


Author Info

10 December 2007 - 11:47am
Submitted by: coolguys




User Comments

© 2009 Novell, Inc. All Rights Reserved.