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

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
Martin Fowler
Martin Fowler
A
About on SuperTechFans
H
Help Net Security
F
Full Disclosure
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
H
Heimdal Security Blog
博客园_首页
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
B
Blog RSS Feed
Last Week in AI
Last Week in AI
V2EX - 技术
V2EX - 技术
The Register - Security
The Register - Security
Security Archives - TechRepublic
Security Archives - TechRepublic
G
GRAHAM CLULEY
美团技术团队
S
Securelist
MyScale Blog
MyScale Blog
Vercel News
Vercel News
L
LINUX DO - 最新话题
Hacker News: Ask HN
Hacker News: Ask HN
W
WeLiveSecurity
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
月光博客
月光博客
Attack and Defense Labs
Attack and Defense Labs
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Forbes - Security
Forbes - Security
罗磊的独立博客
O
OpenAI News
AI
AI
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
雷峰网
雷峰网
S
Security @ Cisco Blogs
MongoDB | Blog
MongoDB | Blog
Schneier on Security
Schneier on Security
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
V
Visual Studio Blog

博客园 - 书生无用

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 的几个要注意的问题(2) 几个有意思的在线服务网站 静悄悄的变化 APPFUSE wiki中文文档问题解决了 appfuse使用Taperstry框架(一)——创建Tapestry框架页面 又是一个艳阳天 有几个Gmail、Wallop邀请 Appfuse开发实践(五)—— 增加校验和列表页面 Appfuse开发实践(四)——创建Webwork 框架的 Actions和JSP Appfuse开发实践(三) —— 创建Manager类 Appfuse开发实践(二)——创建DAO对象 Appfuse里面带的Ant任务列表 Appfuse实践(一)——配置安装
DWR Sample的两个问题
书生无用 · 2005-12-09 · via 博客园 - 书生无用

这两天断断续续一直在折腾DWR,不知道怎么搞得前两个例子一直跑不起来,昨天半夜终于发现了问题所在,今天晚上回来试了一下总算解决了。都是很小的问题,小问题会有大影响,Sample文档描述也不是太清晰,记录一下,免得忘了。

Dyanmic Text

直接复制 http://getahead.ltd.uk/dwr/examples/text 获取的源代码(注意要修改 Demo.js等几个js文件的URL地址),运行有问题,Excuete按钮正常执行,Inclue Page 按钮不起作用。昨晚主义检查发现 Dynamic Text的文档和查看源代码得到的代码有出入。

文档显示

The code is all very similar to the above example except for slightly different Java code:

public String getInclude() throws ServletException, IOException{    return ExecutionContext.get().forwardToString("/forward.jsp");}
源文件中对应的javascript
function forward(){    Demo.getForward(loadforward);}
给出的函数名和实际使用的函数名不一致,修改成一样的,重新发布,一切正常了。

Dynamic Form

Dynamic Form运行时,点击write会出现一个错误信息提示。这个文档说明本身没有问题,漏了一点没有说明,为了sample程序正常运行,需要在dwr.xml增加下面一行:

<convert converter="bean" match="your.full.package.BeanName"/>
这个conver可以使得DWR调用带类参数Set方法时自动创建需要的对象。具体作用参考http://getahead.ltd.uk/dwr/server/dwrxml/converters/bean