Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ui.web.util
Class ComponentTagUtils

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.util.ComponentTagUtils

public final class ComponentTagUtils
extends java.lang.Object

Component tag utils.

Author:
Anahide Tchertchian

Method Summary
static boolean isMethodReference(java.lang.String value)
          Returns true if the specified value conforms to the syntax requirements of a method binding expression.
static boolean isValueReference(java.lang.String value)
          Returns true if the specified value conforms to the syntax requirements of a value binding expression.
static java.lang.Object resolveElExpression(com.sun.facelets.FaceletContext faceletContext, java.lang.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 java.lang.Object resolveElExpression(javax.faces.context.FacesContext context, java.lang.String elExpression)
          Resolves an expression from a given faces context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isValueReference

public static boolean isValueReference(java.lang.String value)
Returns true if the specified value conforms to the syntax requirements of a value binding expression.

Parameters:
value - the value to evaluate (not null)

isMethodReference

public static boolean isMethodReference(java.lang.String value)
Returns true if the specified value conforms to the syntax requirements of a method binding expression.

The method can have parameters and the expression must use parentheses even if no parameters are needed.

Parameters:
value - the value to evaluate (not null)

resolveElExpression

public static java.lang.Object resolveElExpression(javax.faces.context.FacesContext context,
                                                   java.lang.String elExpression)
Resolves an expression from a given faces context.

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).

See Also:
resolveElExpression(FaceletContext, String)

resolveElExpression

public static java.lang.Object resolveElExpression(com.sun.facelets.FaceletContext faceletContext,
                                                   java.lang.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.

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).


Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.