public class FacesInspectionResultProcessorConfig extends Object
Constructor and Description |
---|
FacesInspectionResultProcessorConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
protected String[] |
getIgnoreAttributes() |
protected PropertyStyle |
getInjectThis() |
int |
hashCode() |
FacesInspectionResultProcessorConfig |
setIgnoreAttributes(String... ignoreAttributes)
Sets the names of attributes to ignore.
|
FacesInspectionResultProcessorConfig |
setInjectThis(PropertyStyle injectThis)
Sets the PropertyStyle to use to inject a request-level '_this' attribute (the underscore is
needed because 'this' is a reserved word in EL) into JSF evaluations.
|
public FacesInspectionResultProcessorConfig()
public FacesInspectionResultProcessorConfig setInjectThis(PropertyStyle injectThis)
JSF EL expressions rely on the JSF context being properly initialized with certain managed
bean names. This is rather brittle. Instead, injecting '_this' allows the EL to refer to the
originating object (i.e. #{_this.name}
) regardless of how the JSF context is
configured.
Note: injectThis
cannot be used within attributes such as
faces-lookup
. Those attributes map to well-defined places within the JSF
framework (i.e. f:selectItems
) and are evaluated at a different phase of the JSF
lifecycle. In some cases they will skip invoking FacesInspectionResultProcessor
.
For example if a h:selectOneMenu
fails to validate during POSTback, its
f:selectItems
will be redisplayed without a new inspection and with no chance to
injectThis
.
public FacesInspectionResultProcessorConfig setIgnoreAttributes(String... ignoreAttributes)
protected PropertyStyle getInjectThis()
protected String[] getIgnoreAttributes()
Copyright © 2015. All Rights Reserved.