简体   繁体   English

在挂毯网页中使用CometD

[英]Using cometD in a tapestry web page

When i put this code in my tapestry page and click on some buttons already created in the same page, the page reloads(open picture bellow ) : 当我将此代码放在挂毯页面中并单击已在同一页面中创建的一些按钮时,页面将重新加载(打开下面的图片):

enter image description here therefore the message1.message doesnt show up. 在此处输入图像描述,因此不会显示message1.message。 Can you help ? 你能帮我吗 ?

The picture only shows some code ? 图片只显示一些代码?

Clicking on some button should not reload the whole page, it's 2015 and reloading the whole page is so 1990 :) 单击某些按钮不应重新加载整个页面,现在是2015年,而重新加载整个页面则为1990 :)

I guess you can mitigate by using the CometD reload extension , but the real solution would be to avoid that the whole page is reloaded when you click that button. 我猜您可以通过使用CometD重新加载扩展名来缓解这种情况,但是真正的解决方案是避免单击该按钮时重新加载整个页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM