|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JsfFacade
This interface is implemented by two classes, each for a different JSF version (1.1 and 1.2). The implementing classes are responsible for creating / getting / setting ValueBinding (1.1) or ValueExpression's. This way the version of JSF is abstracted away, which allows us to use JaValid in both environments.
The first time JsfSupport is loaded, it attempts to determine the proper version and initializes the appropriate class. If that fails, it does it the first time this class is needed.
| Field Summary | |
|---|---|
static java.lang.String |
JSF_FACADE_CLASS_11
The class implementing the facade for JSF 1.1 |
static java.lang.String |
JSF_FACADE_CLASS_12
The class implementing the facade for JSF 1.2 |
| Method Summary | |
|---|---|
java.lang.String |
getExpressionStringForComponentProperty(javax.faces.component.UIComponent component,
java.lang.String propertyName)
Returns the expression string from either the ValueBinding/ValueExpression that is resolved from the component using given property. |
java.lang.Object |
getValueForComponentProperty(javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent component,
java.lang.String propertyName)
Gets the value of a property from a component. |
java.lang.Object |
getValueForExpression(javax.faces.context.FacesContext ctx,
java.lang.String expression)
For given expression, lookups ValueBinding / ValueExpression and retrieves the value from it. |
void |
setValueForComponentProperty(javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent component,
java.lang.String propertyName,
java.lang.Object newValue)
Sets a new value for given property from a component. |
void |
setValueForComponentPropertyWithExpression(javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent component,
java.lang.String propertyName,
java.lang.String expressionValue)
Sets a new value for given property from a component. |
void |
setValueForExpression(javax.faces.context.FacesContext ctx,
java.lang.String expression,
java.lang.Object newValue)
For given expression, lookups ValueBinding / ValueExpression and sets the newValue on it. |
| Field Detail |
|---|
static final java.lang.String JSF_FACADE_CLASS_11
static final java.lang.String JSF_FACADE_CLASS_12
| Method Detail |
|---|
java.lang.Object getValueForExpression(javax.faces.context.FacesContext ctx,
java.lang.String expression)
ctx - The current facescontextexpression - The expression to resolve
void setValueForExpression(javax.faces.context.FacesContext ctx,
java.lang.String expression,
java.lang.Object newValue)
ctx - The current facescontextexpression - The expression to resolvenewValue - The new value to set on the valuebinding / valueexpression.
java.lang.Object getValueForComponentProperty(javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent component,
java.lang.String propertyName)
ctx - The contextcomponent - The actual component to get it frompropertyName - The property name
void setValueForComponentProperty(javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent component,
java.lang.String propertyName,
java.lang.Object newValue)
ctx - The contextcomponent - The actual component to get the property and set the value onpropertyName - Property namenewValue - The new value
void setValueForComponentPropertyWithExpression(javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent component,
java.lang.String propertyName,
java.lang.String expressionValue)
ctx - The contextcomponent - The actual component to get the property and set the value onpropertyName - Property nameexpressionValue - The expression value
java.lang.String getExpressionStringForComponentProperty(javax.faces.component.UIComponent component,
java.lang.String propertyName)
component - The componentpropertyName - The property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||