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

Matthias Wessendorf matzew at apache.org
Mon Jan 11 14:10:01 EST 2010


I filed this:
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=720

On Mon, Jan 11, 2010 at 7:43 PM, Dan Allen <dan.j.allen at gmail.com> wrote:
> 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
>



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