org.primefaces.extensions.util
Class ComponentUtils

java.lang.Object
  extended by org.primefaces.util.ComponentUtils
      extended by org.primefaces.extensions.util.ComponentUtils

public class ComponentUtils
extends org.primefaces.util.ComponentUtils

Component utils for this project.

Since:
0.2
Version:
$Revision$
Author:
Oleg Varaksin / last modified by $Author$

Method Summary
static void addComponentResource(javax.faces.context.FacesContext context, java.lang.String name)
           
static void addComponentResource(javax.faces.context.FacesContext context, java.lang.String name, java.lang.String library, java.lang.String target)
           
static java.lang.String escapeComponentId(java.lang.String id)
           
static java.lang.String escapeSelector(java.lang.String value)
          NOTE: COPIED FROM TOBAGO.
static java.lang.String escapeText(java.lang.String text)
          Duplicate code from json-simple project under apache license http://code.google.com/p/json-simple/source/browse/trunk/src/org/json/simple/JSONValue.java
static java.util.List<javax.faces.component.UIComponent> findComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, java.lang.String list)
           
static java.lang.String findTarget(javax.faces.context.FacesContext context, Attachable attachable)
           
static java.lang.String findTarget(javax.faces.context.FacesContext context, Attachable attachable, javax.faces.component.behavior.ClientBehaviorContext cbContext)
           
static java.lang.Object getConvertedSubmittedValue(javax.faces.context.FacesContext fc, javax.faces.component.EditableValueHolder evh)
           
static javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component)
           
static javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component)
           
static boolean isAjaxifiedComponent(javax.faces.component.UIComponent component)
           
 
Methods inherited from class org.primefaces.util.ComponentUtils
considerEmptyStringAsNull, createSelectItems, decorateAttribute, escapeJQueryId, findClientIds, findComponent, findComponentClientId, findParentForm, findParentNamingContainer, findParentUniqueIdVendor, getConverter, getValueToRender, getWidgetVar, isBeansValidationAvailable, isLiteralText, isPartialSubmitEnabled, isRTL, isValueBlank, toLocale, validateEmptyFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

escapeComponentId

public static java.lang.String escapeComponentId(java.lang.String id)

findComponents

public static java.util.List<javax.faces.component.UIComponent> findComponents(javax.faces.context.FacesContext context,
                                                                               javax.faces.component.UIComponent source,
                                                                               java.lang.String list)

findTarget

public static java.lang.String findTarget(javax.faces.context.FacesContext context,
                                          Attachable attachable)

findTarget

public static java.lang.String findTarget(javax.faces.context.FacesContext context,
                                          Attachable attachable,
                                          javax.faces.component.behavior.ClientBehaviorContext cbContext)

addComponentResource

public static void addComponentResource(javax.faces.context.FacesContext context,
                                        java.lang.String name)

addComponentResource

public static void addComponentResource(javax.faces.context.FacesContext context,
                                        java.lang.String name,
                                        java.lang.String library,
                                        java.lang.String target)

escapeText

public static java.lang.String escapeText(java.lang.String text)
Duplicate code from json-simple project under apache license http://code.google.com/p/json-simple/source/browse/trunk/src/org/json/simple/JSONValue.java

Parameters:
text - original text as string
Returns:
String escaped text as string to be used as JSON value

getConvertedSubmittedValue

public static java.lang.Object getConvertedSubmittedValue(javax.faces.context.FacesContext fc,
                                                          javax.faces.component.EditableValueHolder evh)

getRenderer

public static javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext fc,
                                                      javax.faces.component.UIComponent component)

getConverter

public static javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext fc,
                                                         javax.faces.component.UIComponent component)

isAjaxifiedComponent

public static boolean isAjaxifiedComponent(javax.faces.component.UIComponent component)

escapeSelector

public static java.lang.String escapeSelector(java.lang.String value)
NOTE: COPIED FROM TOBAGO. Puts two backslashes before #;&,.+*~':"!^$[]()=>|/ to escape them. Two are needed, because of JavaScript string literals. Puts three backslashes before a \ itself, to escape it.



Copyright © 2011-2013. All Rights Reserved.