Nuxeo ECM Projects 5.4.3-SNAPSHOT

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 Object

Component tag utils.

Author:
Anahide Tchertchian

Method Summary
static boolean isMethodReference(String value)
          Deprecated. since 5.4.3: method and value references are now equivalent with jboss EL
static boolean isValueReference(String value)
          Returns true if the specified value conforms to the syntax requirements of a value binding expression.
static Object resolveElExpression(com.sun.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(FacesContext context, 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(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

@Deprecated
public static boolean isMethodReference(String value)
Deprecated. since 5.4.3: method and value references are now equivalent with jboss EL

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 Object resolveElExpression(FacesContext context,
                                         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 Object resolveElExpression(com.sun.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.

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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.