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

add a Skin api that will clear the skin file(s) and reload at runtime

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.13-core
    • Skinning
    • None

    Description

      We've had several requests where someone wants to reload the skin on demand but without needing the web.xml's CHECK_FILE_MODIFICATION flag on. On instance is the design time team who wants to muck with skins and reload them on demand.

      The proposed public API is on the Skin object. It is:
      /**

      • Check to see if this Skin has been marked dirty.
      • The only way to mark a Skin dirty is to call setDirty(true).
      • @return true if the Skin is marked dirty.
        */
        abstract public boolean isDirty();

      /**

      • Sets the dirty flag of the Skin. Use this if you want to regenerate the skin.
      • During rendering, if isDirty is true,
      • the skin's css file will be reprocessed regardless of whether the css file has been modified
      • or if the CHECK_FILE_MODIFICATION flag was set.
      • The Skinning Framework calls setDirty(false) after the skin has been reprocessed.
        */
        abstract public void setDirty(boolean dirty);

      A patch will be available soon.

      Attachments

        1. SkinIsDirtyAPITrunk.patch
          18 kB
          Jeanne Waldman

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            jeanne.waldman@oracle.com Jeanne Waldman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: