3 Replies Latest reply on Nov 5, 2008 2:05 PM by peterj

    Two Questions: Does JPortal have an index.html? How are bad

    anishv

      I have the following two questions. Any direction would be appreciated.

      1. Why can't bad links or incorrect pages within the portal be displayed?
      For example, if I created a hyperlink in the portal that was obviously incorrect such as "http://localhost:8080/portal/fakelinkpath" which doesn't exit. When I click this link, I expect the new page to display as an error, but instead its the default page for the portal (http://localhost:8080/portal). Why is that? Do I need to make some configuration change to prevent this? If so, what configuration files?

      2. Does JBoss Portal have an index page?
      I am trying to create a welcome page to automatically redirect users to the default JPortal home page (http://localhost:8080/portal). I couldn't find any home pages or anything of that nature that I could modify or use to do this redirection motion.



      --Here are my current specs--
      JBoss Portal Version: jboss-portal-2.7.0.CR1
      Did you get Portal from Subversion? or download it?: Downloaded
      JBoss AS Version: JBoss-4.3.0
      Database Vendor and Version: MySQL 5.0.37
      OS Platform : Windows XP SP2

        • 1. Re: Two Questions: Does JPortal have an index.html? How are
          peterj

          Regarding #2, I replaced the sever/xxx/deploy/jboss-web.deployer/ROOT.war/index.html file with my own that did the redirect.

          Regarding #1, everything within the /portal context goes to the Portal, which, if it cannot determine what to do, displays the portal home page. I don't know if you can change that behavior. Though looking at jboss-portal.sar/conf/data/default-object.xml, I would be tempted to experiment with the values for the control.portal.not_found and control.page.not_found properties.

          • 2. Re: Two Questions: Does JPortal have an index.html? How are
            anishv

            Thanks for the advise. I did try modifying that default-object.xml already but didn't have any luck. Here is what I did:

            <?xml version="1.0" encoding="UTF-8"?>
            <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             ~ JBoss, a division of Red Hat ~
             ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
             ~ contributors as indicated by the @authors tag. See the ~
             ~ copyright.txt in the distribution for a full listing of ~
             ~ individual contributors. ~
             ~ ~
             ~ This is free software; you can redistribute it and/or modify it ~
             ~ under the terms of the GNU Lesser General Public License as ~
             ~ published by the Free Software Foundation; either version 2.1 of ~
             ~ the License, or (at your option) any later version. ~
             ~ ~
             ~ This software is distributed in the hope that it will be useful, ~
             ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
             ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
             ~ Lesser General Public License for more details. ~
             ~ ~
             ~ You should have received a copy of the GNU Lesser General Public ~
             ~ License along with this software; if not, write to the Free ~
             ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
             ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
            
            <!DOCTYPE deployments PUBLIC
             "-//JBoss Portal//DTD Portal Object 2.6//EN"
             "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
            
            <deployments>
             <deployment>
             <context>
             <context-name/>
             <properties>
             <!--
             | Set the layout for the default portal, see also portal-layouts.xml.
             -->
             <property>
             <name>layout.id</name>
             <value>generic</value>
             </property>
             <!--
             | Set the theme for the default portal, see also portal-themes.xml.
             -->
             <property>
             <name>theme.id</name>
             <value>renewal</value>
             </property>
             <!--
             | Set the default render set name (used by the render tag in layouts), see also portal-renderSet.xml
             -->
             <property>
             <name>theme.renderSetId</name>
             <value>divRenderer</value>
             </property>
             <!--
             | The default portal name, if the property is not explicited then the default portal name is "default"
             -->
             <property>
             <name>portal.defaultObjectName</name>
             <value>default</value>
             </property>
            
             <!-- Control policy config -->
             <property>
             <name>control.portal.access_denied</name>
             <!--<value>ignore</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.portal.unavailable</name>
             <!--<value>ignore</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.portal.not_found</name>
             <!--<value>ignore</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.portal.internal_error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.portal.error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.portal.resource_uri</name>
             <value>/WEB-INF/jsp/error/portal.jsp</value>
             </property>
             <property>
             <name>control.page.access_denied</name>
             <!--<value>hide</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.page.unavailable</name>
             <!--<value>hide</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.page.not_found</name>
             <!--<value>hide</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.page.internal_error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.page.error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.page.resource_uri</name>
             <value>/WEB-INF/jsp/error/page.jsp</value>
             </property>
             </properties>
             </context>
             </deployment>
             <deployment>
             <parent-ref/>
             <if-exists>keep</if-exists>
             <portal>
             <portal-name>default</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>
             <security-constraint>
             <policy-permission>
             <action-name>viewrecursive</action-name>
             <action-name>personalizerecursive</action-name>
             <unchecked/>
             </policy-permission>
             </security-constraint>
             <coordination>
             <wirings>
             <implicit-mode>TRUE</implicit-mode>
             </wirings>
             <bindings>
             <implicit-mode>TRUE</implicit-mode>
             </bindings>
             </coordination>
             <page>
             <page-name>default</page-name>
             <display-name xml:lang="en">Home</display-name>
             <display-name xml:lang="it">Home</display-name>
             <display-name xml:lang="es">Home</display-name>
             <display-name xml:lang="fr">Accueil</display-name>
             <display-name xml:lang="ru">�”�¾�¼�¾�¹</display-name>
             <properties>
             <property>
             <name>order</name>
             <value>1</value>
             </property>
             </properties>
             <window>
             <window-name>JSPPortletWindow</window-name>
             <instance-ref>JSPPortletInstance</instance-ref>
             <region>left</region>
             <height>0</height>
             </window>
             <window>
             <window-name>CMSWindow</window-name>
             <content>
             <content-type>cms</content-type>
             <content-uri>/default/index.html</content-uri>
             </content>
             <region>center</region>
             <height>1</height>
             </window>
             <window>
             <window-name>IdentityUserPortletWindow</window-name>
             <instance-ref>IdentityUserPortletInstance</instance-ref>
             <region>left</region>
             <height>1</height>
             </window>
             <window>
             <window-name>CurrentUsersPortletWindow</window-name>
             <instance-ref>CurrentUsersPortletInstance</instance-ref>
             <region>left</region>
             <height>2</height>
             </window>
             </page>
             </portal>
             </deployment>
             <deployment>
             <if-exists>keep</if-exists>
             <context>
             <context-name>dashboard</context-name>
             <properties>
            
             <!--
             | Set the layout for the default portal, see also portal-layouts.xml.
             -->
             <property>
             <name>layout.id</name>
             <value>generic</value>
             </property>
            
             <!--
             | Set the theme for the default portal, see also portal-themes.xml.
             -->
             <property>
             <name>theme.id</name>
             <value>renewal</value>
             </property>
            
             <!--
             | Set the default render set name (used by the render tag in layouts), see also portal-renderSet.xml
             -->
             <property>
             <name>theme.renderSetId</name>
             <value>divRenderer</value>
             </property>
            
             <!--
             | Set the dnd property
             -->
             <property>
             <name>theme.dyna.dnd_enabled</name>
             <value>true</value>
             </property>
            
             <!--
             | Set the partial refresh property
             -->
             <property>
             <name>theme.dyna.partial_refresh_enabled</name>
             <value>false</value>
             </property>
            
             <!-- Control policy config -->
             <property>
             <name>control.portal.access_denied</name>
             <!--<value>ignore</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.portal.unavailable</name>
             <!--<value>ignore</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.portal.not_found</name>
             <!--<value>ignore</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.portal.internal_error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.portal.error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.portal.resource_uri</name>
             <value>/WEB-INF/jsp/error/portal.jsp</value>
             </property>
             <property>
             <name>control.page.access_denied</name>
             <value>hide</value>
             </property>
             <property>
             <name>control.page.unavailable</name>
             <!--<value>hide</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.page.not_found</name>
             <!--<value>hide</value>-->
             <value>show</value>
             </property>
             <property>
             <name>control.page.internal_error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.page.error</name>
             <value>jsp</value>
             </property>
             <property>
             <name>control.page.resource_uri</name>
             <value>/WEB-INF/jsp/error/page.jsp</value>
             </property>
             </properties>
             </context>
             </deployment>
             <deployment>
             <parent-ref/>
             <if-exists>keep</if-exists>
             <portal>
             <portal-name>template</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>
             <page>
             <page-name>default</page-name>
             <display-name xml:lang="en">Home</display-name>
             <display-name xml:lang="it">Home</display-name>
             <display-name xml:lang="es">Home</display-name>
             <display-name xml:lang="fr">Accueil</display-name>
             <display-name xml:lang="ru">�”�¾�¼�¾�¹</display-name>
             <properties>
             <property>
             <name>order</name>
             <value>1</value>
             </property>
             </properties>
             <window>
             <window-name>JSPPortletWindow</window-name>
             <instance-ref>JSPPortletInstance</instance-ref>
             <region>left</region>
             <height>0</height>
             </window>
             <window>
             <window-name>CMSWindow</window-name>
             <content>
             <content-type>cms</content-type>
             <content-uri>/default/index.html</content-uri>
             </content>
             <region>center</region>
             <height>0</height>
             </window>
             <window>
             <window-name>IdentityUserPortletWindow</window-name>
             <instance-ref>IdentityUserPortletInstance</instance-ref>
             <region>left</region>
             <height>1</height>
             </window>
             </page>
             </portal>
             </deployment>
             <deployment>
             <parent-ref/>
             <if-exists>keep</if-exists>
             <portal>
             <portal-name>admin</portal-name>
             <supported-modes>
             <mode>view</mode>
             <mode>edit</mode>
             <mode>help</mode>
             <mode>admin</mode>
             </supported-modes>
             <supported-window-states>
             <window-state>normal</window-state>
             <window-state>minimized</window-state>
             <window-state>maximized</window-state>
             </supported-window-states>
             <security-constraint>
             <policy-permission>
             <action-name>viewrecursive</action-name>
             <role-name>Admin</role-name>
             </policy-permission>
             </security-constraint>
             <page>
             <page-name>default</page-name>
             <display-name xml:lang="en">Admin</display-name>
             <display-name xml:lang="it">Amministrazione</display-name>
             <display-name xml:lang="es">Administración</display-name>
             <display-name xml:lang="fr">Administration</display-name>
             <display-name xml:lang="ru">���´�¼�¸�½�¸Ñ�тр�¸Ñ€�¾�²�°�½�¸�µ</display-name>
             <window>
             <window-name>AdminPortletWindow</window-name>
             <instance-ref>AdminPortletInstance</instance-ref>
             <region>center</region>
             <height>0</height>
             <properties>
             <property>
             <name>theme.renderSetId</name>
             <value>emptyRenderer</value>
             </property>
             </properties>
             </window>
             <properties>
             <property>
             <name>layout.id</name>
             <value>1column</value>
             </property>
             </properties>
             </page>
             <page>
             <page-name>Members</page-name>
             <display-name xml:lang="en">Members</display-name>
             <display-name xml:lang="it">Membri</display-name>
             <display-name xml:lang="fr">Utilisateurs</display-name>
             <window>
             <window-name>IdentityAdminPortletWindow</window-name>
             <instance-ref>IdentityAdminPortletInstance</instance-ref>
             <region>center</region>
             <height>0</height>
             <properties>
             <property>
             <name>theme.renderSetId</name>
             <value>emptyRenderer</value>
             </property>
             </properties>
             </window>
             <properties>
             <property>
             <name>layout.id</name>
             <value>1column</value>
             </property>
             </properties>
             </page>
             </portal>
             </deployment>
            </deployments>
            
            


            I commented out the original parameter and updated it below it. Not sure if those were the correct values (ie. show vs display, etc)

            • 3. Re: Two Questions: Does JPortal have an index.html? How are
              peterj

              Notice that I did not say that editing those entries in default-object.xml would work. Rather, I said that if I were to experiment with item #1, that I would look at those settings. I'm sorry that they didn't work, but I don't have any other ideas.