MyFaces Core
  1. MyFaces Core
  2. MYFACES-702

outputText generates wrapped span element in a portal

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.2
    • Component/s: General
    • Labels:
      None

      Description

      We have a JSF app that runs as a portlet and normal webapp.

      In the webapp the <h:outputText value="some text"/> appears as I would expect (i.e. just the text) however the same thing in the portlet gets rendered as:

      <span id="form-id:handleMetaDataEvent_id36">some text</span>

      This becomes a problem when you are trying to use outputText to render part of a URL or to become a JavaScript string as the output includes the span element!

      Looking at the renderer code for outputText it appears the span gets generated when the id does not start with "_id", so the question is where has the "handleMetaDataEvent" prefix for the id come from?

      1. myfaces702.patch
        0.7 kB
        Henrik Bentel

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Martin Marinschek
            Reporter:
            Gavin Cornwell
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development