08-30-2007 03:27 PM
<config evaluator="node-type" condition="my:community">
<navigation>
<override from-view-id="/jsp/browse/browse.jsp" to-view-id="/extension/jsp/community/community-home.jsp" />
<override from-outcome="browse" to-view-id="/extension/jsp/community/community-home.jsp" />
</navigation>
</config>
09-03-2007 07:07 AM
log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
09-06-2007 05:41 PM
I'm not sure what is happening here, could you possibly turn on debugging for the alfresco navigation handler and post the results?
15:25:04,801 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:25:04,801 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:25:04,802 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://my.domain.foo/model}community' in dispatch context
15:25:04,804 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found navigation config: org.alfresco.web.config.NavigationResult@16c72cc (result=/extension/jsp/community/community-home.jsp isOutcome=false)
15:25:04,804 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] New view id is the same as the current one so setting outcome to null
15:25:04,805 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'null' to original navigation handler
15:25:04,805 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:25:14,210 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:25:14,210 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:25:14,224 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:25:14,226 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:25:14,227 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
15:25:14,227 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:25:14,227 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=null)
15:25:14,227 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:25:14,227 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No dispatch context found
15:25:14,227 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'null' to original navigation handler
15:25:14,227 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:25:18,213 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:25:18,214 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:25:18,215 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:25:18,217 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:25:18,217 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
15:25:18,217 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:25:41,484 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:25:41,484 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:25:41,486 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:25:41,489 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:25:41,489 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
15:25:41,489 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:25:48,632 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:25:48,632 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:25:48,634 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:25:48,637 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:25:48,637 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
15:25:48,637 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:26:02,463 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:26:02,463 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:26:02,464 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:26:02,467 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:26:02,467 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
15:26:02,467 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:26:06,493 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:26:06,493 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:26:06,495 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/forum/1.0}forums' in dispatch context
15:26:06,497 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found navigation config: org.alfresco.web.config.NavigationResult@8479af (result=/jsp/forums/forums.jsp isOutcome=false)
15:26:06,497 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Dispatching to new view id: /jsp/forums/forums.jsp
15:26:06,497 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:26:16,344 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:26:16,344 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/forums/forums.jsp
15:26:16,347 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:26:16,358 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:26:16,358 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
15:26:16,359 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:26:22,310 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=null)
15:26:22,310 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/browse/browse.jsp
15:26:22,311 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:26:22,314 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:26:22,314 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'null' to original navigation handler
15:26:22,314 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:26:36,757 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=null)
15:26:36,757 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/browse/browse.jsp
15:26:36,759 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://my.domain.foo/model}community' in dispatch context
15:26:36,761 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found navigation config: org.alfresco.web.config.NavigationResult@1a06d6 (result=/extension/jsp/community/community-home.jsp isOutcome=false)
15:26:36,761 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Dispatching to new view id: /extension/jsp/community/community-home.jsp
15:26:36,761 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:34:40,839 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:34:40,839 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:34:40,841 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/forum/1.0}forums' in dispatch context
15:34:40,843 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found navigation config: org.alfresco.web.config.NavigationResult@8479af (result=/jsp/forums/forums.jsp isOutcome=false)
15:34:40,844 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Dispatching to new view id: /jsp/forums/forums.jsp
15:34:40,844 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:34:43,504 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
15:34:43,504 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/forums/forums.jsp
15:34:43,506 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:34:43,507 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:34:43,508 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
15:34:43,508 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
15:35:54,046 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=null)
15:35:54,046 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/browse/browse.jsp
15:35:54,048 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://www.alfresco.org/model/content/1.0}folder' in dispatch context
15:35:54,051 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No navigation configuration found for node
15:35:54,051 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'null' to original navigation handler
15:35:54,051 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []
09-06-2007 05:53 PM
15:46:34,815 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=dialog:showSpaceDetails)
15:46:34,815 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /extension/jsp/community/community-home.jsp
15:46:34,815 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Opening dialog 'showSpaceDetails'
15:46:34,815 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using dialog container: /jsp/dialog/container.jsp
15:46:34,815 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using wizard container: /jsp/wizard/container.jsp
15:46:34,815 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] current view is already top of the view stack!
15:46:34,816 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using dispatch context for dialog lookup: {http://my.usgs.gov/model}community
15:46:34,818 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found node with type '{http://my.usgs.gov/model}community' in dispatch context
15:46:34,818 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No override configuration found for current view or outcome
15:46:34,818 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'showSpaceDetails' to original navigation handler
15:46:34,819 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: [/extension/jsp/community/community-home.jsp]
09-07-2007 04:50 AM
<navigation-rule>
<from-view-id>extension/jsp/*</from-view-id>
<navigation-case>
<from-outcome>browse</from-outcome>
<to-view-id>/jsp/browse/browse.jsp</to-view-id>
</navigation-case>
….
</navigation-rule>
09-07-2007 04:48 PM
OK, I can see what is happening….
The navigation rules defined in faces-config-navigation.xml all presume that /jsp is at the start of the path. We normally recommend creating the extension folder under the jsp folder for this reason i.e. /jsp/extension.
You have /extension/jsp/… as your path, this means that none of the navigation rules are getting picked up and you remain on the current page (your custom one).
You therefore have 2 choices, you can either move your custom files to /jsp/extension (the easiest) or you'll have to duplicate all the navigation rules in faces-config-navigation.xml to be of the form:<navigation-rule>
<from-view-id>extension/jsp/*</from-view-id>
<navigation-case>
<from-outcome>browse</from-outcome>
<to-view-id>/jsp/browse/browse.jsp</to-view-id>
</navigation-case>
….
</navigation-rule>
This is obviously more work and likely to be more error prone so I'd go for the first option!
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.