> You can always write an action method, and return different outcomes,
> if you want to reuse the view.
>
Yes, but different outcomes go to different VIEWS not to different
actions. So what you're doing then is to reuse the action, not the view!
What if I want one particular view to call different actions based on a
condition?
<h: commandButton action="#{${session.myActionBinding}}" ...
thus we could have an action mapping in myActionBinding and the command button
would call different actions (maybe even in different beans).
Of course I can write a backing bean with an executeAction instead that -
depending on the session attribute - calls the different actions in other beans
and returns their outcomes.
But if the way described above works it is the easier way to go. In this case
you do not need any additional Java code to call the target action. However as
said I havent tried that yet.