Ok, here's what im trying to do: I have made 4 helloworld portlets (basically copies of the basic helloworld with different names for each class). I want all these 4 portlets to display on the same html page. Each portlet prints out a line on stdout whenever its accessed.
My WEB-INF contains jboss-portlet.xml: | <portlet-app> | <app-name>manyhellos</app-name> | </portlet-app> | portlet.xml | <?xml version="1.0" encoding="UTF-8"?> | <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd" version="1.0"> | | <portlet> | <portlet-name>HelloAPortlet</portlet-name> | <portlet-class>org.jboss.portlet.helloworld.HelloA</portlet-class> | <supported-locale>en</supported-locale> | <resource-bundle>Resource</resource-bundle> | <supports> | <mime-type>text/html</mime-type> | <portlet-mode>VIEW</portlet-mode> | </supports> | <portlet-info> | <title>My HelloA Portlet</title> | </portlet-info> | </portlet> | | <portlet> | <portlet-name>HelloBPortlet</portlet-name> | <portlet-class>org.jboss.portlet.helloworld.HelloB</portlet-class> | <supported-locale>en</supported-locale> | <resource-bundle>Resource</resource-bundle> | <supports> | <mime-type>text/html</mime-type> | <portlet-mode>VIEW</portlet-mode> | </supports> | <portlet-info> | <title>My HelloB Portlet</title> | </portlet-info> | </portlet> | | <portlet> | <portlet-name>HelloCPortlet</portlet-name> | <portlet-class>org.jboss.portlet.helloworld.HelloC</portlet-class> | <supported-locale>en</supported-locale> | <resource-bundle>Resource</resource-bundle> | <supports> | <mime-type>text/html</mime-type> | <portlet-mode>VIEW</portlet-mode> | </supports> | <portlet-info> | <title>My HelloC Portlet</title> | </portlet-info> | </portlet> | | <portlet> | <portlet-name>HelloDPortlet</portlet-name> | <portlet-class>org.jboss.portlet.helloworld.HelloD</portlet-class> | <supported-locale>en</supported-locale> | <resource-bundle>Resource</resource-bundle> | <supports> | <mime-type>text/html</mime-type> | <portlet-mode>VIEW</portlet-mode> | </supports> | <portlet-info> | <title>My HelloD Portlet</title> | </portlet-info> | </portlet> | | </portlet-app> | portlet-instances.xml: | <?xml version="1.0" standalone="yes"?> | <instances> | <instance> | <instance-name>HelloAPortletInstance</instance-name> | <component-name>HelloAPortlet</component-name> | </instance> | <instance> | <instance-name>HelloBPortletInstance</instance-name> | <component-name>HelloBPortlet</component-name> | </instance> | <instance> | <instance-name>HelloCPortletInstance</instance-name> | <component-name>HelloCPortlet</component-name> | </instance> | <instance> | <instance-name>HelloDPortletInstance</instance-name> | <component-name>HelloDPortlet</component-name> | </instance> | </instances> | There;s only 1 pages.xml file,even though there are 4 portlets. This is manyhellos-pages.xml in which I'm placing the many portlet windows: | <pages> | <portal-name>default</portal-name> | | <page> | <page-name>manyhellos</page-name> | | <window> | <window-name>HelloAPortletWindow</window-name> | <instance-ref>manyhellos.HelloAPortlet.HelloAPortletInstance</instance-ref> | <default>true</default> | <region>left</region> | <height>0</height> | </window> | <window> | <window-name>HelloBPortletWindow</window-name> | <instance-ref>manyhellos.HelloBPortlet.HelloBPortletInstance</instance-ref> | <default>true</default> | <region>right</region> | <height>0</height> | </window> | <window> | <window-name>HelloCPortletWindow</window-name> | <instance-ref>manyhellos.HelloCPortlet.HelloCPortletInstance</instance-ref> | <default>true</default> | <region>bottom</region> | <height>0</height> | </window> | <window> | <window-name>HelloDPortletWindow</window-name> | <instance-ref>manyhellos.HelloDPortlet.HelloDPortletInstance</instance-ref> | <default>true</default> | <region>top</region> | <height>0</height> | </window> | | </page> | | </pages> | Now when I run the portal, it shows me the portlet "manyhellos" in the Page Menu. When I click on it, it only runs portlet HelloD. The output I get in stdout is only from HelloD, and it displays only the HelloD portlet on the page. What am I doing wrong? TIA, Karan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869775#3869775 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869775 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
