gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

DIV using both delay & updateFreq parameters #890

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a sj:div tag
2. Associate an action to execute
3. Specify both delay (t1) & updateFreq (f1) parameters. For example: t1=15000 
and f1=15000

What is the expected output?
The action executes at:
t=15000 (as specified in t1)
t=30000 (first update, as specified in f1 (15000 elapsed time since t1))
t=45000 (second f1 elapsed time since t1)
and so on...

What do you see instead?
The action executes at:
t=15000 (as specified in t1)
t=15000 (first f1 elapsed time since t=0; i.e. executes twice because it's 
using t=0 for counting); I think it's not ok.
t=30000 (second f1 elapsed time since t=0)
t=45000 (third f1 elapsed time since t=0)
and so on...

Which struts2 version?
2.1.8.1

Which struts2-jquery plugin version?
3.3.3

Original issue reported on code.google.com by matias.r...@gmail.com on 16 Sep 2012 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 8 Oct 2012 at 9:02

GoogleCodeExporter commented 9 years ago
Solved in trunk. Can you please try out the latest SNAPSHOT?

http://code.google.com/p/struts2-jquery/source/detail?r=1723

Original comment by johgep on 9 Oct 2012 at 8:50

GoogleCodeExporter commented 9 years ago
Thanks!
Using struts2-jquery-plugin-3.4.0-20121009.230830-16 (by 
<version>3.4.0-SNAPSHOT</version>), I'm getting same response. May be I'm doing 
something wrong.
Thanks!

Original comment by matias.r...@gmail.com on 10 Oct 2012 at 12:16

GoogleCodeExporter commented 9 years ago
Your SNAPSHOT Version looks good. Do you have cleared the caches?

Original comment by johgep on 10 Oct 2012 at 7:11

GoogleCodeExporter commented 9 years ago
Thanks and all apologies for that, was the FF cache.
The issue was solved.
Your work is just sublime.
Thanks again!

Original comment by matias.r...@gmail.com on 10 Oct 2012 at 3:29

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 15 Oct 2012 at 6:45