cancel
Showing results for 
Search instead for 
Did you mean: 

How is browse.jsp redirected to forums.jsp for forums?

davidpisaac
Champ in-the-making
Champ in-the-making
Anybody know how the JSF navigation uses the correct page for a forum space?  Neither the browse.jsp nor BrowseBean seem to make any reference to the node's type, but somehow the navigation outcome is altered.
3 REPLIES 3

frederick
Champ in-the-making
Champ in-the-making
Hi,

These navigation overrides are defined in web-client-config-navigation.xml:

<config evaluator="node-type" condition="fm:forums">
      <navigation>
         <override from-view-id="/jsp/browse/browse.jsp" to-view-id="/jsp/forums/forums.jsp" />
         <override from-outcome="browse" to-view-id="/jsp/forums/forums.jsp" />
         <override from-outcome="showSpaceDetails" to-view-id="/jsp/forums/forums-details.jsp" />
      </navigation>
   </config>
  
   <config evaluator="node-type" condition="fm:forum">
      <navigation>
         <override from-view-id="/jsp/browse/browse.jsp" to-view-id="/jsp/forums/forum.jsp" />
         <override from-outcome="browse" to-view-id="/jsp/forums/forum.jsp" />
         <override from-outcome="showSpaceDetails" to-view-id="/jsp/forums/forum-details.jsp" />
      </navigation>
   </config>

Regards,

davidpisaac
Champ in-the-making
Champ in-the-making
Frederick- Thank you!!
I was assuming the navigation override had to be through an action, rather than just page flow.

kevinr
Star Contributor
Star Contributor
As well as action page flow, navigation can be based on node type, aspect on a node or any custom thing if you write a config evaluator class for it. It's very useful Smiley Happy

Thanks,

Kevin