6 Replies Latest reply on Jun 18, 2006 6:38 PM by hurzeler

    change default page

    poyge394

      Hi
      How can i change the default page: I whant:

      1. remove default page.
      2. add my own page to start page.

      when i just remove the default page now: i get
      HTTP Status 404 -
      and this exception in console:

      org.jboss.portal.core.ObjectNotFoundException: Not allowed to access resourceDefault page does not exist


      i gues i most specify somewhere what my default page is.


        • 1. Re: change default page
          silicio
          • 2. Re: change default page
            poyge394

            Hi
            tht post describe how to change the html file send to CMSPortlet, i whant to change the name of default page, so when i use NavigationPortlet it show Home instead of default.

            • 3. Re: change default page
              merlith

              Hi,
              could anything answer, because i`ve the same problem.

              "poyge394" wrote:

              1. remove default page.
              2. add my own page to start page.
              when i just remove the default page now: i get
              HTTP Status 404 -


              The problem is in default redirection after login.
              When u remove "default" page, and log in into the portal, u are redirected to this default page which was removed, so u see error 404, because now "default" page not exist.

              So, when can we change the default redirection after login?

              reg.
              MB





              • 4. Re: change default page
                poyge394

                you can add this property to default-object.xml


                portal.defaultObjectName
                YourDeafultPage

                • 5. Re: change default page
                  poyge394

                   

                   <property>
                   <name>portal.defaultObjectName</name>
                   <value>YourDefaultPage</value>
                   </property>
                  
                  


                  • 6. Re: change default page
                    hurzeler

                    I am using jboss-portal-2.4.0-BETA1 with JBoss-4.0.4.GA and EJB3_RC8-FD. In default-object.xml I set

                    <deployments>
                     <deployment>
                     <portal> ...
                     <portal-name>default</portal-name>
                     <properties> ...
                     <property>
                     <name>portal.defaultObjectName</name>
                     <value>General</value>
                     </property>
                     </properties> ...


                    I have a page called:

                    <page>
                     <page-name>General</page-name> ...


                    When I browse to the http://localhost/ then the portal redirects me to default. Hence I believe that there is a problem here. Can anybody reproduce this?