I don't know if this is a good practice but I would like to call different actions on managed beans from the same commandButton
depending on the user context. The reason is that I access a page from different locations in the application, and I want my single command be a sort of "Back" button to the locations I came from.
I've implemented a custom mechanism based on the idea of MyFaces Orchestra Flow with redirect in a custom NavigationHandler but I wonder if there is a way to parameterized the action
attribute of my commandButton.
Any suggestions welcome