【问题标题】:how to apply process or busy image while performaing ajax call using jsf如何在使用 jsf 执行 ajax 调用时应用进程或忙碌图像
【发布时间】:2013-10-23 01:49:07
【问题描述】:

我想在 JSF 中使用 ajax 调用删除行表单数据表。删除一行需要 30 秒。我想在 ajax 调用完成之前使用进程映像或进程栏来阻止用户活动。

我已经放了激活的示例代码,您可以将其称为删除。

<p:commandLink id="activateId" rendered="#{var.status.statusId eq 1}"
       value=" Activate " action="#{countryBean.ChangeCountryAdminStatus(var.userCountryPK.user.eid,true)}" update="@form" process="@this" >
    </p:commandLink>

【问题讨论】:

    标签: jquery ajax jsf-2


    【解决方案1】:

    使用onclick 属性更改某些元素的类。然后通过你的css在类出现时显示进程指示器。一旦 ajax 调用返回(成功或失败),不要忘记删除该类。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-12-16
    • 1970-01-01
    • 2016-01-26
    • 2012-12-06
    • 2013-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多