rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 * Refreshes a component by calling retrieveComponent() at the given time interval
 *
 * @param componentId - id of the component to be refreshed
 * @param methodToCall - controller method to call on refresh
 * @param timeInterval -  interval in seconds at which the component should be refreshed
 */
Refreshes a component by calling retrieveComponent() at the given time interval

@param componentId - id of the component to be refreshed
@param methodToCall - controller method to call on refresh
@param timeInterval -  interval in seconds at which the component should be refreshed
Refreshes a component by calling retrieveComponent () at the given time interval @param componentId - id of the component to be refreshed @param methodToCall - controller method to call on refresh @param timeInterval - interval in seconds at which the component should be refreshed
function refreshComponentUsingTimer(componentId, methodToCall, timeInterval) {
    var refreshTimer = refreshTimerComponentMap[componentId];
    if (refreshTimer != null) {
        clearInterval(refreshTimer);
        delete refreshTimerComponentMap[componentId];
    }
    refreshTimerComponentMap[componentId] = setInterval(function () {
        retrieveComponent(componentId, methodToCall);
    }, timeInterval * 1000);
}
function refreshComponentUsingTimer ( componentId , methodToCall , timeInterval ) { var refreshTimer = refreshTimerComponentMap [ componentId ] ; if ( refreshTimer != null ) { clearInterval ( refreshTimer ) ; delete refreshTimerComponentMap [ componentId ] ; } refreshTimerComponentMap [ componentId ] = setInterval ( function ( ) { retrieveComponent ( componentId , methodToCall ) ; } , timeInterval * 1000 ) ; }
Refreshes a component by calling retrieveComponent() at the given time interval
Refreshes a component by calling retrieveComponent () at the given time interval
// if a timer already exists for the component then clear it and remove it from the map
 // this is done so that the time interval between executions remains the same.
 //set a new timer on the component
