Jsf Liferay-加载页面时显示微调器

Jsf Liferay-加载页面时显示微调器,jsf,liferay,liferay-6,Jsf,Liferay,Liferay 6,我有一个portlet(页面上只有一个portlet),希望在用户等待请求时显示一个微调器(或沙漏) 在liferayportlet.xml中将render weight设置为0会起作用,但随后不会加载CSS类,也不会再解析url参数 还有其他解决办法吗 [我在运行Liferay 6.1.20 EE] 提前感谢,, Fabi通过使用jQuery,每当用户单击链接时,我可以将光标设置为wait: jqueryBusy = function(){ $("a").click(function

我有一个portlet(页面上只有一个portlet),希望在用户等待请求时显示一个微调器(或沙漏)

liferayportlet.xml
中将
render weight
设置为
0
会起作用,但随后不会加载CSS类,也不会再解析url参数

还有其他解决办法吗

[我在运行Liferay 6.1.20 EE]

提前感谢,,
Fabi

通过使用jQuery,每当用户单击链接时,我可以将
光标设置为
wait

jqueryBusy = function(){
     $("a").click(function() {
            $("*").css("cursor", "wait");
     });
};
我在页面加载时调用此函数,在ajax请求繁忙时调用simmelar:

if (!window["busystatus"]) {
    var busystatus = {};
}

busystatus.onStatusChange = function onStatusChange(data) {
    var status = data.status;

    jqueryBusy(); //set jquery event handler for all links

    if (status === "begin") { // turn on busy indicator
        document.body.style.cursor = 'wait';
    } else { // turn off busy indicator, on either "complete" or "success"
        document.body.style.cursor = 'auto';
    }
};

jsf.ajax.addOnEvent(busystatus.onStatusChange);
对我有用