有没有更好的Ajax推送对JSF 2.0比ICEfaces的 [英] Is there a better Ajax Push for JSF 2.0 than Icefaces

查看:138
本文介绍了有没有更好的Ajax推送对JSF 2.0比ICEfaces的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个情况下,我想实现Ajax推入一个基于Java的Web应用程序更新之类的项目的网页上的股票数量,因为他们改变无需用户进行任何交互。据我了解,需要做这个技术被称为Ajax的推送。我也有JSF 2.0的一些经验,这是preferred但不是必需的。

I am in a situation where I would like to implement Ajax Push in a Java based web app to update things like counts of item in stock on the web page as they change without any interaction from the user. I understand that the technology needed to do this is called Ajax Push. I also have some experience with JSF 2.0, and this is preferred but not required.

首先,我们需要一个演示显示在大约两个星期,但如果演示被接受,我们将有足够的时间把事情做对。

First we need a demo showing this in about a couple of weeks, but if the demo is accepted we will have sufficient time to do it right.

我环顾四周,发现这显然ICEfaces的做到这一点非常好,我会考虑它。我只是想听到的话,有发生存在他人甚至可能会更好地为我们使用?

I've looked around and found that apparently Icefaces do this very well, and I will look into it. I would just like to hear if there happens to exist others which might even be better for us to use?

请,没有这些都是从谷歌前三分命中的答案。我想听听基于经验的意见。

Please, no "these are the top three hits from Google" answers. I'd like to hear opinions based on experiences.

推荐答案

我们已经尝试过(在JSF 1.2模式)和大气/彗星Primefaces两个ICEfaces的。

We have tried both Icefaces (in JSF 1.2 mode) and Atmosphere/Comet with Primefaces.

ICEfaces的推出色的工作开箱。

Icefaces push worked brilliantly out of the box.

我们无法得到大气的工作(在Primefaces),但是这可能是因为我们尝试着用最新的(0.6)版本,并Primefaces不支持它,但 - 所以现在大家都在等待一个更新版本(这是承诺,这将是p之后的下一个大的功能:表具有被重写)。在我们的例子中推是不是在演示的关键因素,我们可以很容易地使用的真正推动的解决方案,而不是投票。

We couldn't get Atmosphere to work (in Primefaces), but this could be because we tried it with the latest (0.6) version, and Primefaces doesn't support it yet - so now we are waiting for an updated version (it is promised that it will be the next big feature after p:dataTable has been rewritten). In our case the push was not a critical element in the demo and we could easily use polling instead of a real push solution.

Icepush很容易启动和运行,但气氛并不很好的记录(恕我直言),并要求一堆罐子和配置。这是不适合初学者是肯定的。

Icepush was very easy to get up and running, while Atmosphere is not very well documented (IMHO), and requires a bunch of jars and configurations. It is not for beginners for sure.

所以,如果阿贾克斯:推是您的演示的一个关键部分我建议你留在JSF 1.2和ICEfaces的。至少在演示完成和客户是幸福的 - 你仍然可以把你的时间与之后的大气结构; - )

So, if ajax:push is a key part of your demo I'd suggest that you stay with JSF 1.2 and Icefaces. At least until the demo is done and the customer is happy - you can still take you time with the Atmosphere configuration after that ;-)

这篇关于有没有更好的Ajax推送对JSF 2.0比ICEfaces的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆