[jboss-user] [JBoss Portal] - Re: Url : how to define MyPortal as the default portal.

Antoine_h do-not-reply at jboss.com
Wed Mar 21 05:59:21 EDT 2007


ok, in PortalObjectImpl there is :

   /**
  |     * Return the default child of this object based on the declared property that specifies the default
  |     * object name.
  |     */
  |    protected PortalObject getDefaultChild()
  |    {
  |       String portalName = getDeclaredProperty(PORTAL_PROP_DEFAULT_OBJECT_NAME);
  |       if (portalName == null)
  |       {
  |          portalName = DEFAULT_OBJECT_NAME;
  |       }
  |       return getChild(portalName);
  |    }
  | 
  | 
so, when not found, it gets the "default" name from interface PortalObject.DEFAULT_OBJECT_NAME.

where can be put the PORTAL_PROP_DEFAULT_OBJECT_NAME property, for defining the default portal among multiple portals instances ?

ie :  in what descriptor and where put the xml item portal.defaultObjectName ?
<property>
  |    <name>portal.defaultObjectName</name>
  |    <value>MyDefaultPortalName</value>
  |  </property>
  | 

I haven't seen in the JSR-168 anything about managing multiple portals.

open a jira ?


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

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



More information about the jboss-user mailing list