<div class="gmail_quote">On Thu, Jan 21, 2010 at 10:15 PM, Cay Horstmann <span dir="ltr">&lt;<a href="mailto:cay@horstmann.com">cay@horstmann.com</a>&gt;</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;">
Consulting the specification for f:event (<a href="http://java.sun.com/javaee/javaserverfaces/2.0/docs/pdldocs/facelets/f/event.html" target="_blank">http://java.sun.com/javaee/javaserverfaces/2.0/docs/pdldocs/facelets/f/event.html</a>), I find that the signature is required to match public void listener(javax.faces.event.ComponentSystemEvent event) throws javax.faces.event.AbortProcessingException.<br>

<br>
That&#39;s actually too bad. When I do a preRenderView event with viewParams, I don&#39;t need the CSE parameter, and I&#39;d rather not couple my managed bean with the JSF API. So, it sure would be nice if I had the flexibility of using the signature public void listener() instead. Mojarra actually lets me do that!<br>
</blockquote><div><br>I&#39;m almost certain that we agreed that the event parameter (and exception signature) were optional. I clearly remember having that discussion. I don&#39;t have it in my archives, but for those that have them, the discussion should start around Jan 17, 2009.<br>
<br>Thus, I consider this a spec error. The fact that Mojarra implements the desired behavior is a partial indication that we agreed on it, too.<br><br>-Dan<br><br></div></div>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
Registered Linux User #231597<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://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>