On Sun, Jan 10, 2010 at 7:23 AM, Matthias Wessendorf <matzew(a)apache.org>wrote:
Why is HtmlOutputText not a ClientBehaviorHolder ?
sure, while <h:outputText value="foo" /> renders as plain text,
some slightly more "complex" outputText renders with a <span>:
<h:outputText style="color:red" value="blah blah blah" />
IMO it is a limitation that outputText is not a ClientBehaviorHolder;
Imagine that you want to do some stuff (e.g. insert/remove a "context
menu") on mouseover/out.
Currently you need to use <outputLabel> for that.
IMO it is a bit lame.
So, if a ClientBehavior is present, why not rendering the beast as
<span ....>Blah blah...</span> ??
+1
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.
-Dan
--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen