[jsr-314-open] [Behavior] Why is HtmlOutputText not a ClientBehaviorHolder ?
Dan Allen
dan.j.allen at gmail.com
Mon Jan 11 13:43:46 EST 2010
On Sun, Jan 10, 2010 at 7:23 AM, Matthias Wessendorf <matzew at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jsr-314-open-mirror/attachments/20100111/c488cf9e/attachment.html
More information about the jsr-314-open-mirror
mailing list