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.
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_modemust 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
ConstructorsConstructorDescriptionDevResource(javax.faces.application.Resource wrapped, String devPath) Deprecated. -
Method Summary
Methods inherited from class DevResource
getInputStream, getRequestPath, userAgentNeedsUpdate, wrapMethods inherited from class javax.faces.application.ResourceWrapper
getContentType, getLibraryName, getResourceName, getResponseHeaders, getURL, getWrapped, setContentType, setLibraryName, setResourceNameMethods inherited from class javax.faces.application.Resource
toString
-
Constructor Details
-
DevResource
Deprecated.- Parameters:
wrapped- Original compressed resource for which a development resource exists.devPath- Path to the development resource on the file system.
-
DevResource