bhaskar9 wrote:
I found navigation issue in the portal. Here is the issue. I have the
following folders and pages in my portal menu.

Folder1
  -page1.psml
  -page2.psml
Folder2
  -page3.psml
  -page4.psml
Folder3
  -page5.psml
  -page6.psml

Assume that page1.psml is the default page for Folder1, page3.psml is the
defaultpage for Folder2, and page5.psml is the default page for Folder3. When i first click on 'Folder1' it shows the defaultpage of it, i.e
page1.psml , after that click on page2.psml, then click on Folder2, then
click on Folder1 again. Now it suppose to show page1.psml, since it is the
default page for Folder1. But it is not showing page1.psml, it shows
page2.psml since page2.psml was the last visited page in that folder.

Does any one solution for this issue.
This is intended but also configurable (default) behavior.

This is managed by the ProfilerValve Spring bean configuration in 
/WEB-INF/assembly/pipelines.xml:

  <bean id="profilerValve" class="org.apache.jetspeed.profiler.impl.ProfilerValveImpl" 
init-method="initialize">
    <meta key="j2:cat" value="default" />
    <constructor-arg index="0">
      <ref bean="org.apache.jetspeed.profiler.Profiler" />
    </constructor-arg>
    <constructor-arg index="1">
      <ref bean="org.apache.jetspeed.portalsite.PortalSite" />
    </constructor-arg>
    <!--
      request fallback to root folder/page enabled by default;
      if set to false, requests generate HTTP 403/404 errors
      for access errors or missing pages
    -->
    <constructor-arg index="2">
      <value>true</value>
    </constructor-arg>
    <!--
      use last visited page histories to select default page
      for folder navigational urls; if set to false, the
      default page specified in PSML, (or the first page in
      the folder), is always selected
    -->
    <constructor-arg index="3">
      <value>true</value>
    </constructor-arg>
  </bean>

As you can see above, the last constructor-arg with index 3 defaults to boolean 
value true.
If you flip that to false, you'll get the "default" behavior you are expecting.

Note: best not to modify the pipelines.xml file itself but instead copy only the (modified) bean definition above to a new file (any name is fine as long as it ends with .xml) and save it in subfolder /WEB-INF/assembly/override

Regards,

Ate


Thanks in advance. I appreciate your help.

--bhaskar9



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to