<div class="gmail_quote">On Sat, Jul 25, 2009 at 6:26 PM, Norbert Truchsess <span dir="ltr">&lt;<a href="mailto:norbert.truchsess@t-online.de">norbert.truchsess@t-online.de</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;">
Am Mittwoch, den 22.07.2009, 21:40 -0700 schrieb Alaxander Smirnov:<br>
<div class="im">&gt; Most of the JSF listener tags supports &#39;bind&#39; attribute that allows to<br>
&gt; use any JSF beans as  listeners, that could have any scope and where<br>
&gt; injection library could make any necessary work.<br>
&gt; Because narrow listener objects are saved in the components tree, in<br>
&gt; addition to the injection we should also define some addition<br>
&gt; lifecycle methods ( e.g. activate/passivate ), otherwise status of<br>
&gt; injected objects will be unpredictable. I suggest to check only is all<br>
&gt; listener could be defined as binding to the JSF beans.<br>
&gt;<br>
</div>In respect to status of injected objects I cannot see the need for<br>
additional lifecycle methods (on the listener objects). We should<br>
support @Postconstruct/@Predestroy annotations (for consistency).</blockquote><div><br>Yes<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But the status of injected Objects should be transparently managed by the<br>
container, not the managed objects.</blockquote><div><br>You mean that JSR-299 should handle the injections, correct?<br><br>To sum up, what we are trying to do is get PhaseListeners and SystemEventListeners (for instance observing PreRenderViewEvent) to gain the Java EE injection and life cycle services that the managed beans currently bear. I&#39;m not suggesting that they be managed beans, but that they be Java EE components. This has nothing to do with EL bindings in my opinion.<br>
<br>-Dan<br></div></div><br>-- <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://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br>