AnsweredAssumed Answered

how to override this?

Question asked by alpha on Jul 9, 2007
Latest reply on Jul 16, 2007 by alpha
Hi guys,

I have applied an aspect to a space to make it be displayed a custom JSP rather than browse.jsp, and it works fine.
But when i launch an action defined by a rule (simple workflow action like approve or reject), browse.jsp is displayed.
How can i do to override the outcome? any idea?

here is the code :
<config evaluator="aspect-name" condition="my:myaspect">
     <navigation>
         <override from-view-id="/jsp/browse/browse.jsp" to-view-id="/jsp/extension/custom.jsp" />
         <override from-outcome="browse" to-view-id="/jsp/extension/custom.jsp" />
      </navigation>
   </config>

and here is the log when i launch the approve action (from a simple workflow rule):
10:57:06,564 DEBUG [web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=browse)
10:57:06,564 DEBUG [web.app.AlfrescoNavigationHandler] Current view id: /jsp/extension/custom.jsp
10:57:06,564 DEBUG [web.app.AlfrescoNavigationHandler] No dispatch context found
10:57:06,564 DEBUG [web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler
10:57:06,564 DEBUG [web.app.AlfrescoNavigationHandler] view stack: []

thanks.

Outcomes