public final class Facelets extends Object
Collection of utility methods for Facelets code.
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(FaceletContext context,
TagAttribute tagAttribute)
Returns the boolean value of the given tag attribute.
|
static Object |
getObject(FaceletContext context,
TagAttribute tagAttribute)
Returns the Object value of the given tag attribute
|
static String |
getString(FaceletContext context,
TagAttribute tagAttribute)
Returns the String value of the given tag attribute.
|
static ValueExpression |
getValueExpression(FaceletContext context,
TagAttribute tagAttribute,
Class<?> type)
Returns the value of the given tag attribute as a value expression, so it can be carried around and evaluated at
a later moment in the lifecycle without needing the Facelet context.
|
public static String getString(FaceletContext context, TagAttribute tagAttribute)
context
- The involved Facelet context.tagAttribute
- The tag attribute to retrieve the value from.public static boolean getBoolean(FaceletContext context, TagAttribute tagAttribute)
context
- The involved Facelet context.tagAttribute
- The tag attribute to retrieve the value from.public static Object getObject(FaceletContext context, TagAttribute tagAttribute)
context
- The involved Facelet context.tagAttribute
- The tag attribute to retrieve the value from.public static ValueExpression getValueExpression(FaceletContext context, TagAttribute tagAttribute, Class<?> type)
context
- The involved Facelet context.tagAttribute
- The tag attribute to extract the value expression from.type
- The expected type of the value behind the value expression.Copyright © 2012–2015 OmniFaces. All rights reserved.