Class Hierarchy All Classes All Fields and Methods
Class com.ibm.faces.renderkit.html_extended.HxClientUtil
java.lang.Object com.ibm.faces.renderkit.html_extended.HxClientUtilpublic class HxClientUtil
extends Object
Constructor Index Constructor Description HxClientUtil()
Method Index Method Description String buildJsConverter(StringBuffer, FacesContext, UIOutput) Builds the javascript statement(s) to instanciate a converter and register it. String buildJsDateConverter(DateTimeConverter, Locale) Builds the javascript statement(s) to instanciate a converter and register it. String buildJsDateRangeValidator(DateTimeRangeValidator) Builds the javascript statement(s) to instanciate a number validator. String buildJsDateRangeValidator(DateTimeRangeValidator, Date, Date) Deprecated. Builds the javascript statement(s) to instanciate a number validator. String buildJsNumberConverter(NumberConverterEx, Locale) Builds the javascript statement(s) to instanciate a converter and register it. String buildJsNumberRangeValidator(Validator) Builds the javascript statement(s) to instanciate a number validator. String buildJsNumberRangeValidator(Validator, Number, Number) Deprecated. Builds the javascript statement(s) to instanciate a number validator. String buildJsRangeValidator(StringBuffer, FacesContext, UIInput) Builds the javascript statement(s) to instanciate a validator and register it. String buildJsRangeValidator(StringBuffer, FacesContext, UIInput, Object, Object) Builds the javascript statement(s) to instanciate a validator and register it. String buildSetResourcePathCall(FacesContext) Builds the javascript statement(s) to generate the setResourceServer call to init resources in hxclient.js. void initJSLibraries(UIComponent, FacesContext) void initJSLibraries(UIComponent, FacesContext, boolean)
Constructors
HxClientUtil
public HxClientUtil()
Methods
buildJsConverter
public static final String buildJsConverter(StringBuffer javascript, FacesContext context, UIOutput component)Builds the javascript statement(s) to instanciate a converter and register it. It returns the id of the converter so it can be looked up in the converter map.
- Parameters
- javascript -
- context -
- component -
- Returns
- the id of the converter so it can be looked up in the converter map.
buildJsDateConverter
public static final String buildJsDateConverter(DateTimeConverter datetimeConverter, Locale locale)Builds the javascript statement(s) to instanciate a converter and register it. It returns the id of the converter so it can be looked up in the converter map.
- Parameters
- datetimeConverter -
- locale -
- Returns
- the javascript new converter statement
buildJsDateRangeValidator
public static final String buildJsDateRangeValidator(DateTimeRangeValidator validator)Builds the javascript statement(s) to instanciate a number validator.
- Parameters
- validator -
- minBound - override of validator min
- maxBound - override of validator max
- Returns
- the javascript new validator statement
buildJsDateRangeValidator
Deprecated. Builds the javascript statement(s) to instanciate a number validator.
public static final String buildJsDateRangeValidator(DateTimeRangeValidator validator, Date minBound, Date maxBound)
- Parameters
- validator -
- minBound - override of validator min
- maxBound - override of validator max
- Returns
- the javascript new validator statement
buildJsNumberConverter
public static final String buildJsNumberConverter(NumberConverterEx numConverter, Locale locale)Builds the javascript statement(s) to instanciate a converter and register it. It returns the id of the converter so it can be looked up in the converter map.
- Parameters
- numConverter -
- locale -
- Returns
- the javascript new converter statement
buildJsNumberRangeValidator
public static final String buildJsNumberRangeValidator(Validator validator)Builds the javascript statement(s) to instanciate a number validator.
- Parameters
- validator -
- minBound - override of validator min
- maxBound - override of validator max
- Returns
- the javascript new validator statement
buildJsNumberRangeValidator
Deprecated. Builds the javascript statement(s) to instanciate a number validator.
public static final String buildJsNumberRangeValidator(Validator validator, Number minBound, Number maxBound)
- Parameters
- validator -
- minBound - override of validator min
- maxBound - override of validator max
- Returns
- the javascript new validator statement
buildJsRangeValidator
public static final String buildJsRangeValidator(StringBuffer javascript, FacesContext context, UIInput input)Builds the javascript statement(s) to instanciate a validator and register it. It returns the id of the validator so it can be looked up in the validator map.
- Parameters
- javascript - StringBuffer to fill in with javascript string
- context - FacesContext
- input - input component being processed
- minBound - override of validator min value
- maxBound - override of validator max value
- Returns
- the id of the validator so it can be looked up in the validator map or null if no validator
buildJsRangeValidator
public static final String buildJsRangeValidator(StringBuffer javascript, FacesContext context, UIInput input, Object minBound, Object maxBound)Builds the javascript statement(s) to instanciate a validator and register it. It returns the id of the validator so it can be looked up in the validator map.
- Parameters
- javascript - StringBuffer to fill in with javascript string
- context - FacesContext
- input - input component being processed
- minBound - override of validator min value
- maxBound - override of validator max value
- Returns
- the id of the validator so it can be looked up in the validator map or null if no validator
buildSetResourcePathCall
public static final String buildSetResourcePathCall(FacesContext context)Builds the javascript statement(s) to generate the setResourceServer call to init resources in hxclient.js. This could return null if this call is not required.
- Parameters
- context - FacesContext
- Returns
- return null if is not need else the setResourceServer call to init resource in hxclient.js
initJSLibraries
public static void initJSLibraries(UIComponent component, FacesContext context)
initJSLibraries
public static void initJSLibraries(UIComponent component, FacesContext context, boolean bWriteNow)
Class Hierarchy All Classes All Fields and Methods