com.sun.rave.web.ui.util
Class VariableResolver.EscapeDataSource

java.lang.Object
  extended by com.sun.rave.web.ui.util.VariableResolver.EscapeDataSource
All Implemented Interfaces:
VariableResolver.DataSource
Enclosing class:
VariableResolver

public static class VariableResolver.EscapeDataSource
extends java.lang.Object
implements VariableResolver.DataSource

This VariableResolver.DataSource simply returns the key that it is given. This is useful for supplying ${}'s around the string you wish to mark as a string. If not used, characters such as '=' will be interpretted as a separator causing your string to be split -- which can be very undesirable. Mostly useful in "if" statements.


Constructor Summary
VariableResolver.EscapeDataSource()
           
 
Method Summary
 java.lang.Object getValue(javax.faces.context.FacesContext ctx, LayoutElement desc, javax.faces.component.UIComponent component, java.lang.String key)
           See class JavaDoc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableResolver.EscapeDataSource

public VariableResolver.EscapeDataSource()
Method Detail

getValue

public java.lang.Object getValue(javax.faces.context.FacesContext ctx,
                                 LayoutElement desc,
                                 javax.faces.component.UIComponent component,
                                 java.lang.String key)

See class JavaDoc.

Specified by:
getValue in interface VariableResolver.DataSource
Parameters:
ctx - The FacesContext
desc - The LayoutElement
component - The UIComponent
key - The key used to obtain information from this DataSource.
Returns:
The value resolved from key.