Package de.xima.fc.portal
Class DevResource
- java.lang.Object
-
- javax.faces.application.ViewResource
-
- javax.faces.application.Resource
-
- javax.faces.application.ResourceWrapper
-
- de.xima.fc.common.faces.DevResource
-
- de.xima.fc.portal.DevResource
-
- All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.Resource>
@Deprecated public class DevResource extends DevResource
Deprecated.UseDevResource
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
ordev-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
-
-
Constructor Summary
Constructors Constructor Description DevResource(javax.faces.application.Resource wrapped, String devPath)
Deprecated.
-
Method Summary
-
Methods inherited from class de.xima.fc.common.faces.DevResource
getInputStream, getRequestPath, userAgentNeedsUpdate, wrap
-
-
-
-
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.
-
-