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

always check for file modification if in DesignTime mode regardless of web.xml setting

    XMLWordPrintableJSON

Details

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

    Description

      We have the CHECK_FILE_MODIFICATION web.xml parameter. When set to true, the Skinning framework will check the skin's css files for modification, and regenerated the skin's stylesheetdocument (and rendered css file) if it has been modified.
      DesignTime tools want to do this same thing, but does not want to set the user's web.xml parameter.

      Add this code to StyleContextImpl:
      public boolean checkStylesModified()
      {
      if (Beans.isDesignTime())

      { // In Design Time mode, if we have a skin-id on the request scope, // then this means we want to check if the skin css files are modified. // This is an alternative to the initParam (CHECK_TIMESTAMP_PARAM) which // is set in web.xml. Design Time cannot set the web.xml file. FacesContext context = FacesContext.getCurrentInstance(); Object requestSkinId = ((CoreRenderingContext) _arc).getRequestMapSkinId(context); if (requestSkinId != null) return true; }

      Attachments

        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: