<div class="gmail_quote">On Sun, Jan 10, 2010 at 7:23 AM, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org">matzew@apache.org</a>></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 <h:outputText value="foo" /> renders as plain text,<br>
some slightly more "complex" outputText renders with a <span>:<br>
<br>
<h:outputText style="color:red" value="blah blah blah" /><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 "context<br>
menu") on mouseover/out.<br>
Currently you need to use <outputLabel> for that.<br>
<br>
IMO it is a bit lame.<br>
So, if a ClientBehavior is present, why not rendering the beast as<br>
<span ....>Blah blah...</span> ??<br></blockquote><div><br>+1<br><br>The language would have to state that a wrapper tag (such as <span>) 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>