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

                 Key: TRINIDAD-1637
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1637
             Project: MyFaces Trinidad
          Issue Type: New Feature
    Affects Versions:  1.2.12-core
            Reporter: Jeanne Waldman
            Assignee: Jeanne Waldman


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;

    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to