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

--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://in.relation.to/Bloggers/Dan

NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters.  Please don't hesitate to resend a message if
you feel that it did not reach my attention.