|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ELHelper
Encapulates EL handling to isolate the dependency to the specific jsf version.
Method Summary | |
---|---|
Object |
getBean(String beanName)
Resolves the bean instance for the specified name. |
Object |
getBindingOfComponent(javax.faces.component.UIComponent uiComponent,
String name)
Deprecated. |
PropertyDetails |
getPropertyDetailsOfValueBinding(javax.faces.component.UIComponent uiComponent)
Extracts the property details (expression, base object and property name) information of the value attribute of the given UIComponent
value attribute. |
Class |
getTypeOfExpression(javax.faces.context.FacesContext facesContext,
ValueBindingExpression valueBindingExpression)
Evaluates the type returned by getValueOfExpression(javax.faces.context.FacesContext, org.apache.myfaces.extensions.validator.core.el.ValueBindingExpression) |
Object |
getValueOfExpression(javax.faces.context.FacesContext facesContext,
ValueBindingExpression valueBindingExpression)
Evaluates the given expression within the current FacesContext |
boolean |
isELTermValid(javax.faces.context.FacesContext facesContext,
String valueBindingExpression)
Determines if the expression is a valid expression, meaning that the expression can be evaluated without an exception. |
boolean |
isELTermWellFormed(Object o)
A very basic check of the EL expression |
Method Detail |
---|
Object getBean(String beanName)
beanName
- The bean name we are interested in, no EL expression.
Object getValueOfExpression(javax.faces.context.FacesContext facesContext, ValueBindingExpression valueBindingExpression)
FacesContext
facesContext
- FacesContext
for the current requestvalueBindingExpression
- value-binding to evaluate
Class getTypeOfExpression(javax.faces.context.FacesContext facesContext, ValueBindingExpression valueBindingExpression)
getValueOfExpression(javax.faces.context.FacesContext, org.apache.myfaces.extensions.validator.core.el.ValueBindingExpression)
facesContext
- FacesContext
for the current requestvalueBindingExpression
- value-binding to evaluate
PropertyDetails getPropertyDetailsOfValueBinding(javax.faces.component.UIComponent uiComponent)
UIComponent
value attribute.
uiComponent
- The UIComponent
in question
UIComponent
boolean isELTermValid(javax.faces.context.FacesContext facesContext, String valueBindingExpression)
facesContext
- The JSF ContextvalueBindingExpression
- The EL expression we want to evaluate.
boolean isELTermWellFormed(Object o)
o
- Object in question
@Deprecated Object getBindingOfComponent(javax.faces.component.UIComponent uiComponent, String name)
uiComponent
- The UIComponent
in questionname
- The name of the attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |