rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 * Calls the updateComponent method on the controller with component id passed in, this id is
 * the component id with any/all suffixes on it not the dictionary id
 *
 * <p>
 * Retrieves the component with the matching id from the server and replaces a matching
 * _refreshWrapper marker span with the same id with the result.  In addition, if the result contains a label
 * and a displayWith marker span has a matching id, that span will be replaced with the label content
 * and removed from the component.  This allows for label and component content separation on fields
 * </p>
 *
 * @param id - id for the component to retrieve
 * @param methodToCall - name of the method that should be invoked for the refresh call (if custom method is needed)
 * @param successCallback - (optional) additional callback function to be executed after the component is retrieved
 * @param additionalData - (optional) additional data to be submitted with the request
 * @param disableBlocking - (optional) turns off blocking and loading messaging
 * @param fieldsToSend (optional) - limit the fields to send to property names defined in an array
 */
Calls the updateComponent method on the controller with component id passed in, this id is
the component id with any/all suffixes on it not the dictionary id


Retrieves the component with the matching id from the server and replaces a matching
_refreshWrapper marker span with the same id with the result.  In addition, if the result contains a label
and a displayWith marker span has a matching id, that span will be replaced with the label content
and removed from the component.  This allows for label and component content separation on fields



Calls the updateComponent method on the controller with component id passed in this id is the component id with any / all suffixes on it not the dictionary id Retrieves the component with the matching id from the server and replaces a matching _refreshWrapper marker span with the same id with the result . In addition if the result contains a label and a displayWith marker span has a matching id that span will be replaced with the label content and removed from the component . This allows for label and component content separation on fields
function retrieveComponent(id, methodToCall, successCallback, additionalData, disableBlocking, fieldsToSend) {
    var refreshComp = jQuery("#" + id);
    if (refreshComp === undefined || refreshComp.filter(':visible').length === 0) {
        var refreshHandle = refreshTimerComponentMap[id];
        if (!(refreshHandle === undefined)) {
            clearInterval(refreshHandle);
            delete refreshTimerComponentMap[id];
            return;
        }
    }
    if (!methodToCall) {
        methodToCall = kradVariables.REFRESH_METHOD_TO_CALL;
    }
    var kradRequest = new KradRequest();
    kradRequest.methodToCall = methodToCall;
    kradRequest.ajaxReturnType = kradVariables.RETURN_TYPE_UPDATE_COMPONENT;
    kradRequest.successCallback = successCallback;
    kradRequest.additionalData = additionalData;
    kradRequest.refreshId = id;
    kradRequest.fieldsToSend = fieldsToSend;
    if (disableBlocking) {
        kradRequest.disableBlocking = disableBlocking;
    }
    kradRequest.send();
}
function retrieveComponent ( id , methodToCall , successCallback , additionalData , disableBlocking , fieldsToSend ) { var refreshComp = jQuery ( "#" + id ) ; if ( refreshComp === undefined || refreshComp . filter ( ':visible' ) . length === 0 ) { var refreshHandle = refreshTimerComponentMap [ id ] ; if ( ! ( refreshHandle === undefined ) ) { clearInterval ( refreshHandle ) ; delete refreshTimerComponentMap [ id ] ; return ; } } if ( ! methodToCall ) { methodToCall = kradVariables . REFRESH_METHOD_TO_CALL ; } var kradRequest = new KradRequest ( ) ; kradRequest . methodToCall = methodToCall ; kradRequest . ajaxReturnType = kradVariables . RETURN_TYPE_UPDATE_COMPONENT ; kradRequest . successCallback = successCallback ; kradRequest . additionalData = additionalData ; kradRequest . refreshId = id ; kradRequest . fieldsToSend = fieldsToSend ; if ( disableBlocking ) { kradRequest . disableBlocking = disableBlocking ; } kradRequest . send ( ) ; }
Calls the updateComponent method on the controller with component id passed in, this id is
 the component id with any/all suffixes on it not the dictionary id
Calls the updateComponent method on the controller with component id passed in this id is the component id with any / all suffixes on it not the dictionary id
// if a call is made from refreshComponentUsingTimer() and the component does not exist on the page or is hidden
 // then get the handle of the refreshTimer and clear the timer. Also remove it from the refreshTimerComponentMap
