0

PollingServerPush.delay.min question (ZK 3.6.2)

asked 2010-12-09 18:25:57 +0800

jasonphos gravatar image jasonphos
66 1 1 1

Hi,

I've been trying to set the polling server push delay, but whenever I do anything to set it, the server push just stops working. There is no polling (I can see there is no polling by looking at the apache log), and nothing is pushed.

I have code that enables server push (Note: The server push is for a shared model... Maybe that's the problem...):

window.getDesktop().enableServerPush(true);

Then, the two ways I tried doing this according to the documentation are:

1.

window.getDesktop().setServerPushDelay(Constants.DEFAULT_SERVER_REFRESH_MIN,
Constants.DEFAULT_SERVER_REFRESH_MAX, Constants.DEFAULT_SERVER_REFRESH_FACTOR);

2.
Added the following to zk.xml:
<preference>
<name>PollingServerPush.delay.min</name>
<value>3000</value>
</preference>
<preference>
<name>PollingServerPush.delay.max</name>
<value>10000</value>
</preference>
<preference>
<name>PollingServerPush.delay.factor</name>
<value>5</value>
</preference>

If I don't do these, then everything works (but the polling is every 1 second). If I do either of these two, then the polling stops completely.

I do have some other code where we use polling differently, not using a model. I'll double-check those to see if they are working....

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-12-30 21:40:50 +0800

iantsai gravatar image iantsai
2755 1

Have you test it in ZK 5?

As what I saw in Javadoc, http://www.zkoss.org/javadoc/5.0/zk/org/zkoss/zk/ui/impl/PollingServerPush.html

Seems this feature is start from ZK 5.0

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-12-09 18:25:57 +0800

Seen: 254 times

Last updated: Dec 30 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More