[jsr-314-open] [Behavior] Why is HtmlOutputText not a ClientBehaviorHolder ?

Matthias Wessendorf matzew at apache.org
Sun Jan 10 07:23:36 EST 2010


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> ??


-Matthias


-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf




More information about the jsr-314-open-mirror mailing list