[jboss-user] [JBoss Portal] - Re: Design Portlet
PeterJ
do-not-reply at jboss.com
Tue Jun 3 16:54:06 EDT 2008
To declare multiple instances of a portal, assuming the portal is named p1, portlet-instances.xml would contain:
<deployments>
| <deployment>
| <instance>
| <instance-id>inst1</instance-id>
| <portlet-ref>p1</portlet-ref>
| <preferences>
| <preference>
| <name>xxx</name>
| <value>aaaaaaa</value>
| </preference>
| </preferences>
| </instance>
| </deployment>
| <deployment>
| <instance>
| <instance-id>inst2</instance-id>
| <portlet-ref>p2</portlet-ref>
| <preferences>
| <preference>
| <name>xxx</name>
| <value>bbbbbbb</value>
| </preference>
| </preferences>
| </instance>
| </deployment>
| . . .
| </deployments>
|
The key is that the portlet is coded to use the use the preferences to customize it.
You can define a base portlet class that does a lot of the common tasks and extend that class. You would then, in portlet.xml, declare a portlet for each of the subclasses.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155486#4155486
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155486
More information about the jboss-user
mailing list