热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.updateAjaxAttributes()方法的使用及代码示例

本文整理了Java中org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.updateAjaxAttribute

本文整理了Java中org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.updateAjaxAttributes()方法的一些代码示例,展示了AjaxFormComponentUpdatingBehavior.updateAjaxAttributes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AjaxFormComponentUpdatingBehavior.updateAjaxAttributes()方法的具体详情如下:
包路径:org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior
类名称:AjaxFormComponentUpdatingBehavior
方法名:updateAjaxAttributes

AjaxFormComponentUpdatingBehavior.updateAjaxAttributes介绍

暂无

代码示例

代码示例来源:origin: org.opensingular/singular-form-wicket

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);
//if (validateOnly)
// attributes.getExtraParameters().put("forceDisableAJAXPageBlock", true);
}

代码示例来源:origin: org.opensingular/form-wicket

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);
//if (validateOnly)
// attributes.getExtraParameters().put("forceDisableAJAXPageBlock", true);
}

代码示例来源:origin: apache/wicket

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
AjaxCheckBox.this.updateAjaxAttributes(attributes);
}

代码示例来源:origin: org.apache.wicket/wicket-core

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
AjaxCheckBox.this.updateAjaxAttributes(attributes);
}

代码示例来源:origin: org.apache.wicket/wicket-core

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
attributes.setSerializeRecursively(true);
attributes.getAjaxCallListeners().add(new AjaxCallListener()
{
private static final long serialVersiOnUID= 1L;
@Override
public CharSequence getPrecondition(Component component)
{
return String.format("return attrs.event.target.name === '%s'", getFormComponent().getInputName());
}
});
}

代码示例来源:origin: apache/wicket

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
attributes.setSerializeRecursively(true);
attributes.getAjaxCallListeners().add(new AjaxCallListener()
{
private static final long serialVersiOnUID= 1L;
@Override
public CharSequence getPrecondition(Component component)
{
return String.format("return attrs.event.target.name === '%s'", getFormComponent().getInputName());
}
});
}

代码示例来源:origin: apache/wicket

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
Component compOnent= getComponent();
// textfiels and textareas will trigger this behavior with either 'inputchange' or 'change' events
// all the other components will use just 'change'
if (!(component instanceof TextField || component instanceof TextArea))
{
attributes.setEventNames(EVENT_CHANGE);
}
}

代码示例来源:origin: org.opensingular/singular-wicket-utils

protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);
if (updateAjaxAttributes != null) {
updateAjaxAttributes.accept(getComponent(), attributes);
}
}

代码示例来源:origin: org.apache.wicket/wicket-core

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
Component compOnent= getComponent();
// textfiels and textareas will trigger this behavior with either 'inputchange' or 'change' events
// all the other components will use just 'change'
if (!(component instanceof TextField || component instanceof TextArea))
{
attributes.setEventNames(EVENT_CHANGE);
}
}

代码示例来源:origin: org.opensingular/wicket-utils

protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);
if (updateAjaxAttributes != null) {
updateAjaxAttributes.accept(getComponent(), attributes);
}
}

代码示例来源:origin: webanno/webanno

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
IAjaxCallListener listener = new AjaxCallListener()
{
private static final long serialVersiOnUID= -7968540662654079601L;
@Override
public CharSequence getPrecondition(Component component)
{
return "var keycode = Wicket.Event.keyCode(attrs.event); return true;";
}
};
attributes.getAjaxCallListeners().add(listener);
attributes.getDynamicExtraParameters().add("var eventKeycode = Wicket.Event" +
".keyCode(attrs.event);return {keycode: eventKeycode};");
attributes.setPreventDefault(false);
}

代码示例来源:origin: webanno/webanno

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes aAttributes)
{
super.updateAjaxAttributes(aAttributes);
// When focus is on a feature editor and the user selects a new annotation,
// there is a race condition between the saving the value of the feature
// editor and the loading of the new annotation. Delay the feature editor
// save to give preference to loading the new annotation.
aAttributes.setThrottlingSettings(new ThrottlingSettings(getMarkupId(),
Duration.milliseconds(250), true));
aAttributes.getAjaxCallListeners().add(new AjaxCallListener()
{
private static final long serialVersiOnUID= 1L;
@Override
public CharSequence getPrecondition(Component aComponent)
{
// If the panel refreshes because the user selects a new annotation,
// the annotation editor panel is updated for the new annotation
// first (before saving values) because of the delay set above. When
// the delay is over, we can no longer save the value because the
// old component is no longer there. We use the markup id of the
// editor fragments to check if the old component is still there
// (i.e. if the user has just tabbed to a new field) or if the old
// component is gone (i.e. the user selected/created another
// annotation). If the old component is no longer there, we abort
// the delayed save action.
return "return $('#" + aFrag.getMarkupId() + "').length > 0;";
}
});
}

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-layer-docmetadata

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes aAttributes)
{
super.updateAjaxAttributes(aAttributes);
// When focus is on a feature editor and the user selects a new annotation,
// there is a race condition between the saving the value of the feature
// editor and the loading of the new annotation. Delay the feature editor
// save to give preference to loading the new annotation.
aAttributes.setThrottlingSettings(new ThrottlingSettings(getMarkupId(),
Duration.milliseconds(250), true));
aAttributes.getAjaxCallListeners().add(new AjaxCallListener()
{
private static final long serialVersiOnUID= 1L;
@Override
public CharSequence getPrecondition(Component aComponent)
{
// If the panel refreshes because the user selects a new annotation,
// the annotation editor panel is updated for the new annotation
// first (before saving values) because of the delay set above. When
// the delay is over, we can no longer save the value because the
// old component is no longer there. We use the markup id of the
// editor fragments to check if the old component is still there
// (i.e. if the user has just tabbed to a new field) or if the old
// component is gone (i.e. the user selected/created another
// annotation). If the old component is no longer there, we abort
// the delayed save action.
return "return $('#" + aFrag.getMarkupId() + "').length > 0;";
}
});
}

代码示例来源:origin: inception-project/inception

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes aAttributes)
{
super.updateAjaxAttributes(aAttributes);
// When focus is on a feature editor and the user selects a new annotation,
// there is a race condition between the saving the value of the feature
// editor and the loading of the new annotation. Delay the feature editor
// save to give preference to loading the new annotation.
aAttributes.setThrottlingSettings(new ThrottlingSettings(getMarkupId(),
Duration.milliseconds(250), true));
aAttributes.getAjaxCallListeners().add(new AjaxCallListener()
{
private static final long serialVersiOnUID= 1L;
@Override
public CharSequence getPrecondition(Component aComponent)
{
// If the panel refreshes because the user selects a new annotation,
// the annotation editor panel is updated for the new annotation
// first (before saving values) because of the delay set above. When
// the delay is over, we can no longer save the value because the
// old component is no longer there. We use the markup id of the
// editor fragments to check if the old component is still there
// (i.e. if the user has just tabbed to a new field) or if the old
// component is gone (i.e. the user selected/created another
// annotation). If the old component is no longer there, we abort
// the delayed save action.
return "return $('#" + aFrag.getMarkupId() + "').length > 0;";
}
});
}

推荐阅读
  • PHP图片截取方法及应用实例
    本文介绍了使用PHP动态切割JPEG图片的方法,并提供了应用实例,包括截取视频图、提取文章内容中的图片地址、裁切图片等问题。详细介绍了相关的PHP函数和参数的使用,以及图片切割的具体步骤。同时,还提供了一些注意事项和优化建议。通过本文的学习,读者可以掌握PHP图片截取的技巧,实现自己的需求。 ... [详细]
  • XML介绍与使用的概述及标签规则
    本文介绍了XML的基本概念和用途,包括XML的可扩展性和标签的自定义特性。同时还详细解释了XML标签的规则,包括标签的尖括号和合法标识符的组成,标签必须成对出现的原则以及特殊标签的使用方法。通过本文的阅读,读者可以对XML的基本知识有一个全面的了解。 ... [详细]
  • 自动轮播,反转播放的ViewPagerAdapter的使用方法和效果展示
    本文介绍了如何使用自动轮播、反转播放的ViewPagerAdapter,并展示了其效果。该ViewPagerAdapter支持无限循环、触摸暂停、切换缩放等功能。同时提供了使用GIF.gif的示例和github地址。通过LoopFragmentPagerAdapter类的getActualCount、getActualItem和getActualPagerTitle方法可以实现自定义的循环效果和标题展示。 ... [详细]
  • 标题: ... [详细]
  • Java学习笔记之面向对象编程(OOP)
    本文介绍了Java学习笔记中的面向对象编程(OOP)内容,包括OOP的三大特性(封装、继承、多态)和五大原则(单一职责原则、开放封闭原则、里式替换原则、依赖倒置原则)。通过学习OOP,可以提高代码复用性、拓展性和安全性。 ... [详细]
  • MyBatis多表查询与动态SQL使用
    本文介绍了MyBatis多表查询与动态SQL的使用方法,包括一对一查询和一对多查询。同时还介绍了动态SQL的使用,包括if标签、trim标签、where标签、set标签和foreach标签的用法。文章还提供了相关的配置信息和示例代码。 ... [详细]
  • JDK源码学习之HashTable(附带面试题)的学习笔记
    本文介绍了JDK源码学习之HashTable(附带面试题)的学习笔记,包括HashTable的定义、数据类型、与HashMap的关系和区别。文章提供了干货,并附带了其他相关主题的学习笔记。 ... [详细]
  • Whatsthedifferencebetweento_aandto_ary?to_a和to_ary有什么区别? ... [详细]
  • 欢乐的票圈重构之旅——RecyclerView的头尾布局增加
    项目重构的Git地址:https:github.comrazerdpFriendCircletreemain-dev项目同步更新的文集:http:www.jianshu.comno ... [详细]
  • 基于Socket的多个客户端之间的聊天功能实现方法
    本文介绍了基于Socket的多个客户端之间实现聊天功能的方法,包括服务器端的实现和客户端的实现。服务器端通过每个用户的输出流向特定用户发送消息,而客户端通过输入流接收消息。同时,还介绍了相关的实体类和Socket的基本概念。 ... [详细]
  • Activiti7流程定义开发笔记
    本文介绍了Activiti7流程定义的开发笔记,包括流程定义的概念、使用activiti-explorer和activiti-eclipse-designer进行建模的方式,以及生成流程图的方法。还介绍了流程定义部署的概念和步骤,包括将bpmn和png文件添加部署到activiti数据库中的方法,以及使用ZIP包进行部署的方式。同时还提到了activiti.cfg.xml文件的作用。 ... [详细]
  • ASP.NET&Spring.NET&NHibernate最佳实践(五)——第3章人事子系统(2)
    3.4.人事子系统服务层(Service)部门服务接口(IDeptService.cs)usingSystem;usingGuushuuse.SalaryPrj. ... [详细]
  • 关于extjs开发实战pdf的信息
    本文目录一览:1、extjs实用开发指南2、本 ... [详细]
  • Python正则表达式学习记录及常用方法
    本文记录了学习Python正则表达式的过程,介绍了re模块的常用方法re.search,并解释了rawstring的作用。正则表达式是一种方便检查字符串匹配模式的工具,通过本文的学习可以掌握Python中使用正则表达式的基本方法。 ... [详细]
  • 本文介绍了MVP架构模式及其在国庆技术博客中的应用。MVP架构模式是一种演变自MVC架构的新模式,其中View和Model之间的通信通过Presenter进行。相比MVC架构,MVP架构将交互逻辑放在Presenter内部,而View直接从Model中读取数据而不是通过Controller。本文还探讨了MVP架构在国庆技术博客中的具体应用。 ... [详细]
author-avatar
怦然欣动and败
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有