On Tue, Jun 2, 2009 at 10:55 AM, Dan Allen
<dan.j.allen@gmail.com> wrote:
On Tue, Jun 2, 2009 at 3:07 AM, Ken Paulsen
<Ken.Paulsen@sun.com> wrote:
Hi Dan,
How is <s:viewAction ... /> different than <f:event /> (besides that it is not generalized)?
So in specific terms, it is an extension. f:event is sufficient if the purpose is to perform processing at the start of the request. s:viewAction (and eventually f:viewAction) is designed for when you have to perform logic to verify that the view can even be rendered. View-level security is one example. Another is verifying that preconditions are met. And the key is to make navigation away from the view an integrated part when it's determined that the view cannot and should not be rendered.
-Dan