Definition of context
I have created a new action bean class, which I use in a changed “single-tasks-widget-template.xhtml” file. It is very similar to the JbpmActionsBean class used in the “manage-task-widget-template.xhtml” file. Both classes use returnToCurrentDocOrHome() function, but for my class it returns to “/nuxeo/view_documents.faces” and for the JbpmActionsBean class it returns to “/nuxeo/view_home.faces”.
It depends on a seam context for a navigationContext variable, but where the context is defined?
0 votes
0 answers
1563 views
to go to the view_home path.
I see that in JbpmActionsBean#returnToCurrentDocOrHome, it returns to home page if there is an exception. Are you sure that this code is executed in your custom bean?
Note that in NavigationContext#goHome, main context variables are reset (currentDocument included).