<br><br><div class="gmail_quote">On Tue, Jun 2, 2009 at 3:07 AM, Ken Paulsen <span dir="ltr"><<a href="mailto:Ken.Paulsen@sun.com">Ken.Paulsen@sun.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Dan,<br>
<br>
How is <s:viewAction ... /> different than <f:event /> (besides that it is not generalized)?</blockquote><div><br>Navigation. It is all about declarative navigation. After each expression evaluated, the navigation handler is consulted and if a navigation case is matched, the remaining actions are short-circuited. If the navigation is a redirect, the response is wrapped up and the redirect followed (FacesContext#responseComplete()). If their is just a view ID change, the process vamps. The developer does not have to do anything special to get that functionality.<br>
<br>Executing a view action (or preRenderViewEvent listener) on a non-faces request is like executing the the restore view. Andy and I worked hard to specify that processing of the f:metadata facet does not build the component tree. That's because the very presence of a view action could circumvent rendering of that component tree, hence making it a wasted operation. The component tree is only built once the preRenderViewEvent listeners complete and the response is not ended.<br>
<br>-Dan</div></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br><br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>
from my email. If you contact me, but don't hear back for more than a week,<br>it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters. Please don't hesitate to resend a message if<br>
you feel that it did not reach my attention.<br>