Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2527

Support for decorator design pattern: RenderKit(s)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-2
    • JSR-314
    • None

    Description

      Spec. "11.4.6 Delegating Implementation Support" - "The runtime must support the decorator design pattern .. for .. RenderKit". This is especially true for HTML_BASIC, following example should work:

      faces-config.xml
      <render-kit>
      <render-kit-class>com.foo.render.RenderKitImpl</render-kit-class>
      <render-kit-id>HTML_BASIC</render-kit-id>
      </render-kit>

      RenderKitImpl:
      class RenderKitImpl extends RenderKit implements FacesWrapper<RenderKit> {
      public RenderKitImpl(RenderKit wrapped)

      { super(); this.wrapped = wrapped; }

      // method delegation here ...
      }

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: