惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
Vercel News
Vercel News
Google DeepMind News
Google DeepMind News
罗磊的独立博客
WordPress大学
WordPress大学
The Cloudflare Blog
GbyAI
GbyAI
The Register - Security
The Register - Security
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
MyScale Blog
MyScale Blog
A
About on SuperTechFans
U
Unit 42
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
Blog — PlanetScale
Blog — PlanetScale
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
T
The Exploit Database - CXSecurity.com
T
Tor Project blog
A
Arctic Wolf
H
Hacker News: Front Page
NISL@THU
NISL@THU
F
Full Disclosure
雷峰网
雷峰网
L
LINUX DO - 热门话题
Recent Announcements
Recent Announcements
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
Google Online Security Blog
Google Online Security Blog
I
InfoQ
Webroot Blog
Webroot Blog
S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
博客园 - Franky
V
Vulnerabilities – Threatpost
博客园 - 【当耐特】
Latest news
Latest news

博客园 - 书生无用

Improve the speed to display a transparent background winform Replace the with CR in Microsoft Excel using maven and eclipse created a mutiple module project for eclipse 开源的codecoverage(测试代码覆盖率)检测工具 使用zoudry编辑blog的设置 wiki为什么会流行 DWR Sample的两个问题 几个有意思的在线服务网站 静悄悄的变化 APPFUSE wiki中文文档问题解决了 appfuse使用Taperstry框架(一)——创建Tapestry框架页面 又是一个艳阳天 有几个Gmail、Wallop邀请 Appfuse开发实践(五)—— 增加校验和列表页面 Appfuse开发实践(四)——创建Webwork 框架的 Actions和JSP Appfuse开发实践(三) —— 创建Manager类 Appfuse开发实践(二)——创建DAO对象 Appfuse里面带的Ant任务列表 Appfuse实践(一)——配置安装
实现 DWR Sample 的几个要注意的问题(2)
书生无用 · 2005-12-13 · via 博客园 - 书生无用
Dynamically Editing a Table
Dynamically Editing a Table。网上的示例有初始值,需要加入构造函数和
 createPeople() 方法(别忘了在Person类中加入下面的构造函数)。
 
public Person(String name, String address, int id, float salary) {
this.id = id;
this.name = name;
this.salary = salary;
this.address = address;
 }
Dynamic Address Entry
Dynamic Address Entry。完成这个例子需要在 Demo.java 里面加入
 fillAddress 方法(别忘了加入相关的变量定义)。
Dynamically Populating a Selection List
Dynamically Populating a Selection List。完成这个例子需要在 Demo.java 里面加入 
getNumbers 方法(别忘了加入相关的变量定义)。
 
Dynamic Validation
Dynamic Validation。完成这个例子需要在dwr.xml里面加入:
    <create creator="new" javascript="UrlValidator">      <param name="class"        value="org.apache.commons.validator.UrlValidator"/>    </create>    <create creator="new" javascript="CreditCardValidator">      <param name="class"        value="org.apache.commons.validator.CreditCardValidator"/>    </create>    <create creator="script" javascript="EmailValidator"        scope="application">      <param name="language" value="beanshell"/>      <param name="script">        import org.apache.commons.validator.EmailValidator;        return EmailValidator.getInstance();      </param>    </create>
需要下载下面的组件,然后把对应的.jar文件copy到web-inf/lib目录下:

Simple Chat
Simple Chat。重点要参考文中的链接文章an article atJava.net,可以看到具体的示例代码。
Handling XML
Handling XML。完成这个例子需要在dwr.xml里面加入:
    <create creator="new" javascript="XOM">      <param name="class"                value="uk.ltd.getahead.testdwr.XOMDemo"/>    </create>    <create creator="new" javascript="JDOM">      <param name="class"                value="uk.ltd.getahead.testdwr.JDOMDemo"/>    </create>    <create creator="new" javascript="DOM4J">      <param name="class"                value="uk.ltd.getahead.testdwr.DOM4JDemo"/>    </create>    <create creator="new" javascript="DOM">      <param name="class"                value="uk.ltd.getahead.testdwr.DOMDemo"/>    </create>
这个例子没有找到要用到的下面几个类的源代码。所以放弃测试.....
  • uk.ltd.getahead.testdwr.XOMDemo
  • uk.ltd.getahead.testdwr.JDOMDemo
  • uk.ltd.getahead.testdwr.DOM4JDemo
  • uk.ltd.getahead.testdwr.DOMDemo
相关方法代码可以在这里找到。
 

Technorati : ajax java dwr