Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1927

Trinidad 2 CoreRenderer.encodeChild does not call the JSF 1.2 encodeAll method on the child

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.2.13-core , 2.0.0-beta-1
    • 1.2.14-core , 2.0.0-beta-1
    • None
    • None

    Description

      JSF 1.2 introduced the encodeAll method on UIComponent. Trinidad's CoreRenderer is not utilizing this method. Instead it is using:

      protected void encodeChild(
      FacesContext context,
      UIComponent child
      ) throws IOException
      {
      assert(child.isRendered());
      child.encodeBegin(context);
      if (child.getRendersChildren())

      { child.encodeChildren(context); }

      else
      {
      if (child.getChildCount() > 0)
      {
      for(UIComponent subChild : (List<UIComponent>)child.getChildren())

      { RenderUtils.encodeRecursive(context, subChild); }

      }
      }

      child.encodeEnd(context);
      }

      It should be using the JSF 1.2 encodeAll method instead.

      Attachments

        Issue Links

          Activity

            People

              arobinson74 Andrew Robinson
              arobinson74 Andrew Robinson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: