org.apache.myfaces.util
Class ContainerUtils

java.lang.Object
  extended by org.apache.myfaces.util.ContainerUtils

public class ContainerUtils
extends Object

Utilities for determining the current container and for the unified expression language.


Constructor Summary
ContainerUtils()
           
 
Method Summary
static boolean isJsp21()
          Determines whether we're running in a Servlet 2.5/JSP 2.1 environment.
static boolean isValueReference(String value)
          Return true if the specified string contains an EL expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerUtils

public ContainerUtils()
Method Detail

isJsp21

public static boolean isJsp21()
Determines whether we're running in a Servlet 2.5/JSP 2.1 environment.

Returns:
true if we're running in a JSP 2.1 environment, false otherwise

isValueReference

public static boolean isValueReference(String value)
Return true if the specified string contains an EL expression.

NOTICE This method is just a copy of UIComponentTag#isValueReference(String), but it's required because the class UIComponentTag depends on a JSP 2.1 container (for example, it indirectly implements the interface JspIdConsumer) and therefore internal classes shouldn't access this class. That's also the reason why this method is inside the class ContainerUtils, because it allows MyFaces to be independent of a JSP 2.1 container.



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.