<div class="gmail_quote">On Fri, Jan 8, 2010 at 11:30 AM, Roger Kitain <span dir="ltr">&lt;<a href="mailto:Roger.Kitain@sun.com">Roger.Kitain@sun.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;">
It would be a nice feature to be able to have CDI injection in Phase<br>
Listeners also, as any Servlet/JSF/CDI integration is always welcome<br>
where applicable<br><br></blockquote><div><br>This is actually a more general requirement (which we may have discussing in passing). Any user-defined class instance that JSF creates should be classified as a components in Java EE. But, to accommodate that without tying JSF directly to the platform (a separation we have always maintained), there should be a pluggable class instance resolver which could be satisfied with a CDI implementation, a Spring bean implementation, etc. That way, it would be possible to support CDI injection into objects such as phase listeners, system event listeners, validators, converters, and so on with the proper resolver. Basically, any time JSF accesses something w/o the use of the EL, it should go through this instance resolver.<br>
<br>In a way, this complements the EL resolver, which is already a nice mechanism for hooking into different component models.<br><br>-Dan<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>