<div class="gmail_quote">On Sun, Jan 10, 2010 at 7:23 AM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org">matzew@apache.org</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;">
Why is HtmlOutputText not a ClientBehaviorHolder ?<br>
<br>
sure, while &lt;h:outputText value=&quot;foo&quot; /&gt; renders as plain text,<br>
some slightly more &quot;complex&quot; outputText renders with a &lt;span&gt;:<br>
<br>
&lt;h:outputText style=&quot;color:red&quot; value=&quot;blah blah blah&quot; /&gt;<br>
<br>
IMO it is a limitation that outputText is not a ClientBehaviorHolder;<br>
<br>
Imagine that you want to do some stuff (e.g. insert/remove a &quot;context<br>
menu&quot;) on mouseover/out.<br>
Currently you need to use &lt;outputLabel&gt; for that.<br>
<br>
IMO it is a bit lame.<br>
So, if a ClientBehavior is present, why not rendering the beast as<br>
&lt;span ....&gt;Blah blah...&lt;/span&gt; ??<br></blockquote><div><br>+1<br><br>The language would have to state that a wrapper tag (such as &lt;span&gt;) is required in this case, just as it is when styles are specified.<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>