public final class ComponentTagUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
applyValueExpression(javax.faces.context.FacesContext context,
String elExpression,
Object value)
Resolves given value expression as string and sets given value on it.
|
static String |
getBareValueName(String valueReference)
Returns a value name for given strict value reference.
|
static boolean |
isMethodReference(String value)
Deprecated.
since 5.5: method and value references are now equivalent with jboss EL
|
static boolean |
isStrictValueReference(String value)
Returns true if the specified value is a value expression, e.g starting and ending with EL markers after being
trimmed.
|
static boolean |
isValueReference(String value)
Returns true if the specified value contains a value expression, e.g the start and end of EL markers.
|
static Object |
resolveElExpression(javax.faces.view.facelets.FaceletContext faceletContext,
String elExpression)
Resolves an expression from a given facelet context, using its
ExpressionFactory that can hold a wider
context than the faces context behind it. |
static Object |
resolveElExpression(javax.faces.context.FacesContext context,
String elExpression)
Resolves an expression from a given faces context.
|
public static boolean isValueReference(String value)
value
- the value to evaluate, returns false if nullpublic static boolean isStrictValueReference(String value)
value
- the value to evaluate, returns false if nullpublic static String getBareValueName(String valueReference)
valueReference
- IllegalArgumentException
- if reference is null or isStrictValueReference(String)
returns false.@Deprecated public static boolean isMethodReference(String value)
The method can have parameters and the expression must use parentheses even if no parameters are needed.
value
- the value to evaluate (not null)public static Object resolveElExpression(javax.faces.context.FacesContext context, String elExpression)
Resolves the expression a second time when first resolution gives a String value using the EL Expression syntax.
Does not throw any error when resolution fails (only logs an error message).
public static void applyValueExpression(javax.faces.context.FacesContext context, String elExpression, Object value)
public static Object resolveElExpression(javax.faces.view.facelets.FaceletContext faceletContext, String elExpression)
ExpressionFactory
that can hold a wider
context than the faces context behind it.
Resolves the expression a second time when first resolution gives a String value using the EL Expression syntax.
Does not throw any error when resolution fails (only logs an error message).
Copyright © 2015 Nuxeo SA. All rights reserved.