////////////////////////////////////////
//web/WEB-INF/efw/event/global.js
////////////////////////////////////////
var global={};
global.fire=function(){
...
};
The event variable must be named as "global" which is same to the file name. Pay attention not to operate the session object in the global event. The global event does not return anything.