Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1
    • Fix Version/s: 2.0 Rev a
    • Component/s: Components/Renderers
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      720

      Description

      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 this is lame.

      So, if a ClientBehavior is present, why not rendering the beast as
      <span ....>Blah blah...</span> ??

        Activity

        Hide
        mwessendorf added a comment -

        as a matter of fact, this behavior is desired.

        The <h:outputText> never exposed "DOM API", such as onMouseover etc. Other
        components, like h:outputLabel or h:panelGrid, that do expose these DOM APIs,
        are supporting this and can be used as a work-around.

        Most-likely 3rd party will have <xyz:outputText> which is a ClientBehaviorHolder

        Show
        mwessendorf added a comment - as a matter of fact, this behavior is desired. The <h:outputText> never exposed "DOM API", such as onMouseover etc. Other components, like h:outputLabel or h:panelGrid, that do expose these DOM APIs, are supporting this and can be used as a work-around. Most-likely 3rd party will have <xyz:outputText> which is a ClientBehaviorHolder
        Hide
        Manfred Riem added a comment -

        Closing resolved issue out

        Show
        Manfred Riem added a comment - Closing resolved issue out

          People

          • Assignee:
            javaserverfowner
            Reporter:
            mwessendorf
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: