There are a number of places where we need to prompt the user "Would you like to... yes or no" and based on the answer either redirect or perform a certain action (and then redirect).
Is it possible to create a reusable page to do something like this? Even if we want a method on a component called on the submission of the users choice?
Alternately we could use one for each page, of course.
First of all I want to introduce god news about we plan such component for future releases :)
Now you can't use modalPanel. You may include it to the pages you need and define the bean add action to be called but the button through ui:param component.