Class DevResource

  • All Implemented Interfaces:
    javax.faces.FacesWrapper<javax.faces.application.Resource>

    @Deprecated
    public class DevResource
    extends DevResource
    Deprecated.
    A resource meant only for development. It reads the resource directly from the file system and makes sure it is never cached. This is useful especially for transpiled JavaScript or CSS files that change while the server is running.

    To enable this feature, you must start formcycle with the dev mode profile:

    • Faces development stage must be set to Production
    • The system property de.xima.fc.dev_mode must be set to true.

    To use this feature, you must add either dev-path or dev-path-base as a URL parameter to a Faces resource URL. dev-path points directly to the path of the file on the file system, dev-path-base appends the path of the Faces resource to the base URL. The path may be relative, in which case it is resolved against the value of the system property

    Author:
    XIMA MEDIA GmbH
    • Field Summary

      • Fields inherited from class javax.faces.application.Resource

        COMPONENT_RESOURCE_KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      DevResource​(javax.faces.application.Resource wrapped, String devPath)
      Deprecated.
       
    • Constructor Detail

      • DevResource

        public DevResource​(javax.faces.application.Resource wrapped,
                           String devPath)
        Deprecated.
        Parameters:
        wrapped - Original compressed resource for which a development resource exists.
        devPath - Path to the development resource on the file system.