No.. this is what I have done. I created a new *-portal.xml file as described 
in the JBoss manual JBoss Portal 2.0 Final Reference Guide. 
It does not work as far as I can tell. This is quite discouraging. This really 
should be a simple task. 


Inside of 

C:\jboss-portal-2.0-jboss-4.0.2\server\default\deploy\jboss-portal.sar
I have the following directories

  | Conf
  | lib
  | META-INF
  | org
  | portal-cms.sar
  | portal-cms.war
  | portal-core.war
  | portal-server.war
  | and my helloworld.war 
  | 
  | 
  | Inside of helloworld.war I have a WEB-INF directory with all the files from 
the helloworld example. I added helloworld-portal.xml with the following 
contents which I would think defines a new portal called helloworld:
  | 
  | 
  |   | <?xml version="1.0" encoding="UTF-8"?>
  |   | <portal>
  |   |    <portal-name>helloworld</portal-name>
  |   |    <supported-modes>
  |   |       <mode>view</mode>
  |   |       <mode>edit</mode>
  |   |       <mode>help</mode>
  |   |    </supported-modes>
  |   |    <supported-window-states>
  |   |       <window-state>normal</window-state>
  |   |       <window-state>minimized</window-state>
  |   |       <window-state>maximized</window-state>
  |   |    </supported-window-states>
  |   |    <pages>
  |   |       <default-page>default</default-page>
  |   |       <page>
  |   |          <page-name>samples</page-name>
  |   |          <window>
  |   |             <window-name>HelloWorldPortletWindow</window-name>
  |   |             
<instance-ref>helloworld.HelloWorldPortlet.HelloWorldPortletInstance</instance-ref>
  |   |                 <default>true</default>
  |   |             <region>center</region>
  |   |             <height>0</height>
  |   |          </window>
  |   |       </page>
  |   |    </pages>
  |   | </portal>
  |   | 
  | 
  | 
  | I also corrected the <page-name>helloworld</page-name> in 
helloworld-pages.xml from hellworld to helloworld.
  | 
  | I then point the browser at http://localhost:8080/helloworld I get a 
directory listing for ?/?.
  | If then point the browser to http://localhost:8080/portal I get the default 
portal for JBoss with my helloworld portlet in the menu. Somehow the default 
portal seems to discover my portlet automagically (?) even though it is not 
included in the default-portal.xml file.
  | 
  | Can someone please help me with this.. 
  | ray
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901788#3901788

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901788


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to