/** * The rich:findComponent('id') function returns the a UIComponent instance of the passed component identifier. If the * specified component identifier is not found, null is returned instead. */ @Function public static UIComponent findComponent(String id) { return findComponent(FacesContext.getCurrentInstance(), id); }
/** * The rich:findComponent('id') function returns the a UIComponent instance of the passed component identifier. If the * specified component identifier is not found, null is returned instead. */ @Function public static UIComponent findComponent(String id) { return findComponent(FacesContext.getCurrentInstance(), id); }
/** * The rich:findComponent('id') function returns the a UIComponent instance of the passed component identifier. If the * specified component identifier is not found, null is returned instead. */ @Function public static UIComponent findComponent(String id) { return findComponent(FacesContext.getCurrentInstance(), id); }
/** * The rich:findComponent('id') function returns the a UIComponent instance of the passed component identifier. If the * specified component identifier is not found, null is returned instead. */ @Function public static UIComponent findComponent(String id) { return findComponent(FacesContext.getCurrentInstance(), id); }
/** * <p>The rich:element('id') function is a shortcut for the equivalent document.getElementById(#{rich:clientId('id')}) code. It * returns the element from the client, based on the passed server-side component identifier. If the specified component * identifier is not found, null is returned instead.</p> */ @Function public static String element(String id) { String clientId = clientId(id); if (clientId != null) { return "document.getElementById('" + clientId + "')"; } return null; }
/** * <p>The rich:element('id') function is a shortcut for the equivalent document.getElementById(#{rich:clientId('id')}) code. It * returns the element from the client, based on the passed server-side component identifier. If the specified component * identifier is not found, null is returned instead.</p> */ @Function public static String element(String id) { String clientId = clientId(id); if (clientId != null) { return "document.getElementById('" + clientId + "')"; } return null; }
/** * <p>The rich:element('id') function is a shortcut for the equivalent document.getElementById(#{rich:clientId('id')}) code. It * returns the element from the client, based on the passed server-side component identifier. If the specified component * identifier is not found, null is returned instead.</p> */ @Function public static String element(String id) { String clientId = clientId(id); if (clientId != null) { return "document.getElementById('" + clientId + "')"; } return null; }
/** * <p>The rich:element('id') function is a shortcut for the equivalent document.getElementById(#{rich:clientId('id')}) code. It * returns the element from the client, based on the passed server-side component identifier. If the specified component * identifier is not found, null is returned instead.</p> */ @Function public static String element(String id) { String clientId = clientId(id); if (clientId != null) { return "document.getElementById('" + clientId + "')"; } return null; }
/** * The rich:component('id') function is equivalent to the RichFaces.component('clientId') code. It returns the client object * instance based on the passed server-side component identifier ('id'). If the specified component identifier is not found, * null is returned instead. The function can be used to get an object from a component to call a JavaScript API function * without using the <rich:componentControl> component. */ @Function public static String component(String id) { String clientId = clientId(id); if (clientId != null) { // TODO nick - what if jQuery.RichFaces doesn't exist? return "RichFaces.component('" + clientId + "')"; } return null; }
/** * The rich:component('id') function is equivalent to the RichFaces.$('clientId') code. It returns the client object * instance based on the passed server-side component identifier ('id'). If the specified component identifier is not found, * null is returned instead. The function can be used to get an object from a component to call a JavaScript API function * without using the <rich:componentControl> component. */ @Function public static String component(String id) { String clientId = clientId(id); if (clientId != null) { // TODO nick - what if jQuery.RichFaces doesn't exist? return "RichFaces.$('" + clientId + "')"; } return null; }
/** * The rich:component('id') function is equivalent to the RichFaces.$('clientId') code. It returns the client object * instance based on the passed server-side component identifier ('id'). If the specified component identifier is not found, * null is returned instead. The function can be used to get an object from a component to call a JavaScript API function * without using the <rich:componentControl> component. */ @Function public static String component(String id) { String clientId = clientId(id); if (clientId != null) { // TODO nick - what if jQuery.RichFaces doesn't exist? return "RichFaces.$('" + clientId + "')"; } return null; }
/** * The rich:component('id') function is equivalent to the RichFaces.component('clientId') code. It returns the client object * instance based on the passed server-side component identifier ('id'). If the specified component identifier is not found, * null is returned instead. The function can be used to get an object from a component to call a JavaScript API function * without using the <rich:componentControl> component. */ @Function public static String component(String id) { String clientId = clientId(id); if (clientId != null) { // TODO nick - what if jQuery.RichFaces doesn't exist? return "RichFaces.component('" + clientId + "')"; } return null; }
/** * The rich:clientId('id') function returns the client identifier related to the passed component identifier ('id'). If the * specified component identifier is not found, null is returned instead. */ @Function public static String clientId(String id) { FacesContext context = FacesContext.getCurrentInstance(); UIComponent component = findComponent(context, id); return component != null ? component.getClientId(context) : null; }
/** * The rich:clientId('id') function returns the client identifier related to the passed component identifier ('id'). If the * specified component identifier is not found, null is returned instead. */ @Function public static String clientId(String id) { FacesContext context = FacesContext.getCurrentInstance(); UIComponent component = findComponent(context, id); return component != null ? component.getClientId(context) : null; }
/** * The rich:clientId('id') function returns the client identifier related to the passed component identifier ('id'). If the * specified component identifier is not found, null is returned instead. */ @Function public static String clientId(String id) { FacesContext context = FacesContext.getCurrentInstance(); UIComponent component = findComponent(context, id); return component != null ? component.getClientId(context) : null; }
/** * The rich:clientId('id') function returns the client identifier related to the passed component identifier ('id'). If the * specified component identifier is not found, null is returned instead. */ @Function public static String clientId(String id) { FacesContext context = FacesContext.getCurrentInstance(); UIComponent component = findComponent(context, id); return component != null ? component.getClientId(context) : null; }
/** * The rich:jQuerySelector('id') function will perform nearly the same function as rich:clientId('id') but will transform * the resulting id into a jQuery id selector which means that it will add a "#" character at the beginning and escape all * reserved characters in CSS selectors. */ @Function public static String jQuerySelector(String id) { FacesContext facesContext = FacesContext.getCurrentInstance(); UIComponent component = findComponent(facesContext, id); if (component != null) { return jQuerySelector(facesContext, component); } return null; }
/** * The rich:jQuerySelector('id') function will perform nearly the same function as rich:clientId('id') but will transform * the resulting id into a jQuery id selector which means that it will add a "#" character at the beginning and escape all * reserved characters in CSS selectors. */ @Function public static String jQuerySelector(String id) { FacesContext facesContext = FacesContext.getCurrentInstance(); UIComponent component = findComponent(facesContext, id); if (component != null) { return jQuerySelector(facesContext, component); } return null; }
/** * The rich:jQuerySelector('id') function will perform nearly the same function as rich:clientId('id') but will transform * the resulting id into a jQuery id selector which means that it will add a "#" character at the beginning and escape all * reserved characters in CSS selectors. */ @Function public static String jQuerySelector(String id) { FacesContext facesContext = FacesContext.getCurrentInstance(); UIComponent component = findComponent(facesContext, id); if (component != null) { return jQuerySelector(facesContext, component); } return null; }
/** * The rich:jQuerySelector('id') function will perform nearly the same function as rich:clientId('id') but will transform * the resulting id into a jQuery id selector which means that it will add a "#" character at the beginning and escape all * reserved characters in CSS selectors. */ @Function public static String jQuerySelector(String id) { FacesContext facesContext = FacesContext.getCurrentInstance(); UIComponent component = findComponent(facesContext, id); if (component != null) { return jQuerySelector(facesContext, component); } return null; }