Class JavaxFaces2_0Properties
- java.lang.Object
-
- org.joinfaces.autoconfigure.javaxfaces.JavaxFaces2_0Properties
-
- All Implemented Interfaces:
ServletContextInitParameterProperties
@ConfigurationProperties(prefix="joinfaces.jsf") public class JavaxFaces2_0Properties extends Object implements ServletContextInitParameterProperties
Configuration properties
for JSF 2.0.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavaxFaces2_0Properties.Partial
Partial class for execute, render and resetValues parameters.static class
JavaxFaces2_0Properties.Validator
Valitador class for disableDefaultBeanValidator parameter.
-
Constructor Summary
Constructors Constructor Description JavaxFaces2_0Properties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<String>
getConfigFiles()
Comma-delimited list of faces config files.Boolean
getDatetimeconverterDefaultTimezoneIsSystemTimezone()
Controls if DateTimeConverter instances use the system timezone (if true) or GMT (if false).String
getDefaultSuffix()
Change the default suffix for JSP views.Boolean
getDisableFaceletJsfViewhandler()
ViewHandler.Integer
getFaceletsBufferSize()
The buffer size set on the response.List<Class<? extends javax.faces.view.facelets.TagDecorator>>
getFaceletsDecorators()
TagDecorator implementations.List<String>
getFaceletsLibraries()
Semicolon-separated list of paths to Facelet tag libraries.Integer
getFaceletsRefreshPeriod()
Time in seconds that facelets should be checked for changes since last request.Class<? extends javax.faces.view.facelets.ResourceResolver>
getFaceletsResourceResolver()
An implementation of javax.faces.view.facelets.ResourceResolver.Boolean
getFaceletsSkipComments()
If true, strip XML comments out of Facelets before delivering to the client.String
getFaceletsSuffix()
Set the suffix for Facelet xhtml files.List<String>
getFaceletsViewMappings()
Semicolon-separated list of Facelet files that don't use the default facelets suffix.List<String>
getFullStateSavingViewIds()
Semicolon-separated list of view IDs that must save state using the JSF 1.2-style state saving.Boolean
getInterpretEmptyStringSubmittedValuesAsNull()
If true, consider empty UIInput values to be null instead of empty string.String
getLifecycleId()
ID for alternate Lifecycle implementations.JavaxFaces2_0Properties.Partial
getPartial()
Boolean
getPartialStateSaving()
If true, use the JSF2 partial state saving for views.javax.faces.application.ProjectStage
getProjectStage()
Set the project stage to "Development", "UnitTest", "SystemTest", or "Production".List<String>
getResourceExcludes()
A space separated list of resource extensions for types that shouldn't be served by the ResourceHandler implementation.String
getSeparatorChar()
The context-param that allows the separator char for clientId strings to be set on a per-web application basis.String
getStateSavingMethod()
"server" or "client".String
getValidateEmptyFields()
If "true", validate null and empty values.JavaxFaces2_0Properties.Validator
getValidator()
int
hashCode()
void
setConfigFiles(List<String> configFiles)
Comma-delimited list of faces config files.void
setDatetimeconverterDefaultTimezoneIsSystemTimezone(Boolean datetimeconverterDefaultTimezoneIsSystemTimezone)
Controls if DateTimeConverter instances use the system timezone (if true) or GMT (if false).void
setDefaultSuffix(String defaultSuffix)
Change the default suffix for JSP views.void
setDisableFaceletJsfViewhandler(Boolean disableFaceletJsfViewhandler)
ViewHandler.void
setFaceletsBufferSize(Integer faceletsBufferSize)
The buffer size set on the response.void
setFaceletsDecorators(List<Class<? extends javax.faces.view.facelets.TagDecorator>> faceletsDecorators)
TagDecorator implementations.void
setFaceletsLibraries(List<String> faceletsLibraries)
Semicolon-separated list of paths to Facelet tag libraries.void
setFaceletsRefreshPeriod(Integer faceletsRefreshPeriod)
Time in seconds that facelets should be checked for changes since last request.void
setFaceletsResourceResolver(Class<? extends javax.faces.view.facelets.ResourceResolver> faceletsResourceResolver)
An implementation of javax.faces.view.facelets.ResourceResolver.void
setFaceletsSkipComments(Boolean faceletsSkipComments)
If true, strip XML comments out of Facelets before delivering to the client.void
setFaceletsSuffix(String faceletsSuffix)
Set the suffix for Facelet xhtml files.void
setFaceletsViewMappings(List<String> faceletsViewMappings)
Semicolon-separated list of Facelet files that don't use the default facelets suffix.void
setFullStateSavingViewIds(List<String> fullStateSavingViewIds)
Semicolon-separated list of view IDs that must save state using the JSF 1.2-style state saving.void
setInterpretEmptyStringSubmittedValuesAsNull(Boolean interpretEmptyStringSubmittedValuesAsNull)
If true, consider empty UIInput values to be null instead of empty string.void
setLifecycleId(String lifecycleId)
ID for alternate Lifecycle implementations.void
setPartialStateSaving(Boolean partialStateSaving)
If true, use the JSF2 partial state saving for views.void
setProjectStage(javax.faces.application.ProjectStage projectStage)
Set the project stage to "Development", "UnitTest", "SystemTest", or "Production".void
setResourceExcludes(List<String> resourceExcludes)
A space separated list of resource extensions for types that shouldn't be served by the ResourceHandler implementation.void
setSeparatorChar(String separatorChar)
The context-param that allows the separator char for clientId strings to be set on a per-web application basis.void
setStateSavingMethod(String stateSavingMethod)
"server" or "client".void
setValidateEmptyFields(String validateEmptyFields)
If "true", validate null and empty values.String
toString()
-
-
-
Method Detail
-
getProjectStage
public javax.faces.application.ProjectStage getProjectStage()
Set the project stage to "Development", "UnitTest", "SystemTest", or "Production".
-
getResourceExcludes
public List<String> getResourceExcludes()
A space separated list of resource extensions for types that shouldn't be served by the ResourceHandler implementation. See the specification for further details.
-
getFullStateSavingViewIds
public List<String> getFullStateSavingViewIds()
Semicolon-separated list of view IDs that must save state using the JSF 1.2-style state saving.
-
getPartialStateSaving
public Boolean getPartialStateSaving()
If true, use the JSF2 partial state saving for views.
-
getStateSavingMethod
public String getStateSavingMethod()
"server" or "client".
-
getDefaultSuffix
public String getDefaultSuffix()
Change the default suffix for JSP views.
-
getDisableFaceletJsfViewhandler
public Boolean getDisableFaceletJsfViewhandler()
ViewHandler. Useful for applications that use legacy Facelets implementation.
-
getFaceletsBufferSize
public Integer getFaceletsBufferSize()
The buffer size set on the response.
-
getFaceletsDecorators
public List<Class<? extends javax.faces.view.facelets.TagDecorator>> getFaceletsDecorators()
TagDecorator implementations. See javadoc for javax.faces.view.facelets.TagDecorator.
-
getFaceletsLibraries
public List<String> getFaceletsLibraries()
Semicolon-separated list of paths to Facelet tag libraries.
-
getFaceletsRefreshPeriod
public Integer getFaceletsRefreshPeriod()
Time in seconds that facelets should be checked for changes since last request. A value of -1 disables refresh checking.
-
getFaceletsSkipComments
public Boolean getFaceletsSkipComments()
If true, strip XML comments out of Facelets before delivering to the client.
-
getFaceletsSuffix
public String getFaceletsSuffix()
Set the suffix for Facelet xhtml files.
-
getFaceletsViewMappings
public List<String> getFaceletsViewMappings()
Semicolon-separated list of Facelet files that don't use the default facelets suffix.
-
getValidateEmptyFields
public String getValidateEmptyFields()
If "true", validate null and empty values. If "auto" validate when JSR-303 Bean Validation is enabled (in AS6 it is enabled by default).
-
getSeparatorChar
public String getSeparatorChar()
The context-param that allows the separator char for clientId strings to be set on a per-web application basis.- Since:
- 2.0
-
getPartial
public JavaxFaces2_0Properties.Partial getPartial()
-
getDatetimeconverterDefaultTimezoneIsSystemTimezone
public Boolean getDatetimeconverterDefaultTimezoneIsSystemTimezone()
Controls if DateTimeConverter instances use the system timezone (if true) or GMT (if false).
-
getValidator
public JavaxFaces2_0Properties.Validator getValidator()
-
getFaceletsResourceResolver
public Class<? extends javax.faces.view.facelets.ResourceResolver> getFaceletsResourceResolver()
An implementation of javax.faces.view.facelets.ResourceResolver. See javadoc for details.
-
getLifecycleId
public String getLifecycleId()
ID for alternate Lifecycle implementations.
-
getInterpretEmptyStringSubmittedValuesAsNull
public Boolean getInterpretEmptyStringSubmittedValuesAsNull()
If true, consider empty UIInput values to be null instead of empty string.
-
setProjectStage
public void setProjectStage(javax.faces.application.ProjectStage projectStage)
Set the project stage to "Development", "UnitTest", "SystemTest", or "Production".
-
setResourceExcludes
public void setResourceExcludes(List<String> resourceExcludes)
A space separated list of resource extensions for types that shouldn't be served by the ResourceHandler implementation. See the specification for further details.
-
setFullStateSavingViewIds
public void setFullStateSavingViewIds(List<String> fullStateSavingViewIds)
Semicolon-separated list of view IDs that must save state using the JSF 1.2-style state saving.
-
setPartialStateSaving
public void setPartialStateSaving(Boolean partialStateSaving)
If true, use the JSF2 partial state saving for views.
-
setStateSavingMethod
public void setStateSavingMethod(String stateSavingMethod)
"server" or "client".
-
setDefaultSuffix
public void setDefaultSuffix(String defaultSuffix)
Change the default suffix for JSP views.
-
setDisableFaceletJsfViewhandler
public void setDisableFaceletJsfViewhandler(Boolean disableFaceletJsfViewhandler)
ViewHandler. Useful for applications that use legacy Facelets implementation.
-
setFaceletsBufferSize
public void setFaceletsBufferSize(Integer faceletsBufferSize)
The buffer size set on the response.
-
setFaceletsDecorators
public void setFaceletsDecorators(List<Class<? extends javax.faces.view.facelets.TagDecorator>> faceletsDecorators)
TagDecorator implementations. See javadoc for javax.faces.view.facelets.TagDecorator.
-
setFaceletsLibraries
public void setFaceletsLibraries(List<String> faceletsLibraries)
Semicolon-separated list of paths to Facelet tag libraries.
-
setFaceletsRefreshPeriod
public void setFaceletsRefreshPeriod(Integer faceletsRefreshPeriod)
Time in seconds that facelets should be checked for changes since last request. A value of -1 disables refresh checking.
-
setFaceletsSkipComments
public void setFaceletsSkipComments(Boolean faceletsSkipComments)
If true, strip XML comments out of Facelets before delivering to the client.
-
setFaceletsSuffix
public void setFaceletsSuffix(String faceletsSuffix)
Set the suffix for Facelet xhtml files.
-
setFaceletsViewMappings
public void setFaceletsViewMappings(List<String> faceletsViewMappings)
Semicolon-separated list of Facelet files that don't use the default facelets suffix.
-
setValidateEmptyFields
public void setValidateEmptyFields(String validateEmptyFields)
If "true", validate null and empty values. If "auto" validate when JSR-303 Bean Validation is enabled (in AS6 it is enabled by default).
-
setSeparatorChar
public void setSeparatorChar(String separatorChar)
The context-param that allows the separator char for clientId strings to be set on a per-web application basis.- Since:
- 2.0
-
setDatetimeconverterDefaultTimezoneIsSystemTimezone
public void setDatetimeconverterDefaultTimezoneIsSystemTimezone(Boolean datetimeconverterDefaultTimezoneIsSystemTimezone)
Controls if DateTimeConverter instances use the system timezone (if true) or GMT (if false).
-
setFaceletsResourceResolver
public void setFaceletsResourceResolver(Class<? extends javax.faces.view.facelets.ResourceResolver> faceletsResourceResolver)
An implementation of javax.faces.view.facelets.ResourceResolver. See javadoc for details.
-
setConfigFiles
public void setConfigFiles(List<String> configFiles)
Comma-delimited list of faces config files.
-
setLifecycleId
public void setLifecycleId(String lifecycleId)
ID for alternate Lifecycle implementations.
-
setInterpretEmptyStringSubmittedValuesAsNull
public void setInterpretEmptyStringSubmittedValuesAsNull(Boolean interpretEmptyStringSubmittedValuesAsNull)
If true, consider empty UIInput values to be null instead of empty string.
-
canEqual
protected boolean canEqual(Object other)
-
-