Esri Geoportal Server
1.0

com.esri.gpt.framework.jsf.components
Class UISupport

java.lang.Object
  extended by com.esri.gpt.framework.jsf.components.UISupport

public class UISupport
extends Object

The Class UISupport. Supporting methods for


Constructor Summary
UISupport()
           
 
Method Summary
 MethodBinding createActionBinding(String expression)
          Creates the action binding.
 MethodBinding createActLstnrMethodBinding(String expression)
          Creates the action listener method binding.
 MethodBinding createValidatorBinding(String expression)
          Creates the validator binding.
 ValueBinding createValueBinding(String expression)
          Creates the value binding.
 boolean enclosedInForm(UIComponent comp)
          Enclosed in form.
 UIComponent findComponent(FacesContext context, String id)
          Find component.
 UIComponent findComponent(UIComponent root, String id)
          Find component.
 UIForm findEnclosingFormOf(UIComponent comp)
          Find enclosing form of the component.
 String getBeanExpression(String beanName)
          Gets the bean expression.
 String getBeanExpression(String beanName, String property)
          Gets the expression.
 void renderChildren(UIComponent component, FacesContext context)
          Render children.
 void renderRecursive(UIComponent component, FacesContext context)
          Recursive render a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UISupport

public UISupport()
Method Detail

createActionBinding

public MethodBinding createActionBinding(String expression)
Creates the action binding.

Parameters:
expression - the expression
Returns:
the method binding

createActLstnrMethodBinding

public MethodBinding createActLstnrMethodBinding(String expression)
Creates the action listener method binding.

Parameters:
expression - the expression
Returns:
the method binding

createValidatorBinding

public MethodBinding createValidatorBinding(String expression)
Creates the validator binding.

Parameters:
expression - the expression
Returns:
the method binding

createValueBinding

public ValueBinding createValueBinding(String expression)
Creates the value binding.

Parameters:
expression - the expression
Returns:
the value binding

renderChildren

public void renderChildren(UIComponent component,
                           FacesContext context)
                    throws IOException
Render children.

Parameters:
component - the component
context - the context
Throws:
IOException - Signals that an I/O exception has occurred.

renderRecursive

public void renderRecursive(UIComponent component,
                            FacesContext context)
                     throws IOException
Recursive render a component.

Parameters:
component - the component
context - the context
Throws:
IOException - Signals that an I/O exception has occurred.

getBeanExpression

public String getBeanExpression(String beanName)
Gets the bean expression. Generates #{beanName}

Parameters:
beanName - the bean name
Returns:
the bean expression

getBeanExpression

public String getBeanExpression(String beanName,
                                String property)
Gets the expression. Generates #{beanName.property}

Parameters:
beanName - the bean name
property - the property
Returns:
the expression

findComponent

public UIComponent findComponent(FacesContext context,
                                 String id)
Find component. The default findComponent in JSF objects do not work as intended.

Parameters:
id - the id
context - the context (if null, FacesContext.getCurrentInstance() used)
Returns:
the UI component (null if not found)

findComponent

public UIComponent findComponent(UIComponent root,
                                 String id)
Find component. UIComponent.findComponent method does not work

Parameters:
root - Component to start at
id - The id to look for
Returns:
the UI component

enclosedInForm

public boolean enclosedInForm(UIComponent comp)
Enclosed in form.

Parameters:
comp - the comp
Returns:
true, if HtmlForm object is parent of component

findEnclosingFormOf

public UIForm findEnclosingFormOf(UIComponent comp)
Find enclosing form of the component.

Parameters:
comp - the component to find the enclsing form of
Returns:
the form component (null if form parent not found)

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.