Hi All,
Can I have two portlet instances in portlet-instances.xml? Like following.
<?xml version="1.0" standalone="yes"?> <!DOCTYPE deployments PUBLIC "-//JBoss Portal//DTD Portlet Instances 2.6//EN" "http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd"> <deployments> <deployment> <instance> <instance-id>DialPortletInstance</instance-id> <portlet-ref>DialPortlet</portlet-ref> </instance> </deployment> <deployment> <instance> <instance-id>RandomNumberPortletInstance</instance-id> <portlet-ref>RandomNumberPortlet</portlet-ref> </instance> </deployment> </deployments>
Yes, you can do this, and your syntax is correct.