Hi<br><br>I created an issue here:<br><br><a href="https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=798">https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=798</a><br><br>regards,<br>
<br>Leonardo Uribe<br><br><div class="gmail_quote">2010/5/5 Martin Marinschek <span dir="ltr">&lt;<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Leonardo,<br>
<br>
Ah well, I totally agree. Looks like the (wrong) remainder of a<br>
refactoring to me.<br>
<div><div></div><div class="h5"><br>
best regards,<br>
<br>
Martin<br>
<br>
On 5/5/10, Leonardo Uribe &lt;<a href="mailto:lu4242@gmail.com">lu4242@gmail.com</a>&gt; wrote:<br>
&gt; Hi Martin<br>
&gt;<br>
&gt; 2010/5/4 Martin Marinschek &lt;<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>&gt;<br>
&gt;<br>
&gt;&gt; Hi Leonardo,<br>
&gt;&gt;<br>
&gt;&gt; just so that I get you right: you are saying that broadcast should be<br>
&gt;&gt; called in any case, not only if the behaviour is a ClientBehavior?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; Yes, the Behavior interface has only one method: broadcast(). It does not<br>
&gt; have sense to put a method on a base class that only will be called for an<br>
&gt; specific child class (in this case ClientBehavior). I think the intention of<br>
&gt; the programmer here is call it always.<br>
&gt;<br>
&gt; best regards,<br>
&gt;<br>
&gt; Leonardo Uribe<br>
&gt;<br>
&gt;<br>
&gt;&gt; (sorry if this question doesn&#39;t make a lot of sense; I am not too deep<br>
&gt;&gt; in the behavior stuff right now ;)<br>
&gt;&gt;<br>
&gt;&gt; best regards,<br>
&gt;&gt;<br>
&gt;&gt; Martin<br>
&gt;&gt;<br>
&gt;&gt; On 5/5/10, Leonardo Uribe &lt;<a href="mailto:lu4242@gmail.com">lu4242@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Checking the new Behavior api (for implement cc:clientBehavior), I note<br>
&gt;&gt; that<br>
&gt;&gt; &gt; the javadoc of UIComponent.broadcast says this:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &quot;....Broadcast the specified FacesEvent to all registered event<br>
&gt;&gt; &gt; listeners<br>
&gt;&gt; &gt; who have expressed an interest in events of this type. Listeners are<br>
&gt;&gt; called<br>
&gt;&gt; &gt; in the order in which they were added.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; If the event is an instance of BehaviorEvent and the current component<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt; the source of the event call BehaviorEvent.getBehavior() to get the<br>
&gt;&gt; Behavior<br>
&gt;&gt; &gt; for the event. If the behavior implements ClientBehavior, call<br>
&gt;&gt; &gt; Behavior.broadcast(javax.faces.event.BehaviorEvent)}.....&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The wrong line is:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &quot;.....If the behavior implements ClientBehavior, call<br>
&gt;&gt; &gt; Behavior.broadcast.....&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; So, if a user try to create a custom Behavior, the method broadcast()<br>
&gt;&gt; will<br>
&gt;&gt; &gt; be useless, and custom behaviors will not catch events. I think it is a<br>
&gt;&gt; bug<br>
&gt;&gt; &gt; on the javadoc, so I&#39;ll correct it on myfaces.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; regards,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Leonardo Uribe<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br>
&gt;&gt;<br>
&gt;&gt; Your JSF powerhouse -<br>
&gt;&gt; JSF Consulting, Development and<br>
&gt;&gt; Courses in English and German<br>
&gt;&gt;<br>
&gt;&gt; Professional Support for Apache MyFaces<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5"><br>
<a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br>
<br>
Your JSF powerhouse -<br>
JSF Consulting, Development and<br>
Courses in English and German<br>
<br>
Professional Support for Apache MyFaces<br>
</div></div></blockquote></div><br>