gigaZhang / struts2-jquery

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

reloadTopics on Div - Multiple divs to same topic association bug #1033

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1.Create one action "master" and one "child".
2.Call from master jsp (via ajax) different childs (same action, different 
parameters)
3. Associate two (more than one) <sj:div> callers to the same topic (different 
ids).
3. Publish Reload event from child button or submit, as the same on master.

What is the expected output? What do you see instead?
Expected: both divs be reloaded from the original href which was created.

Occurs: one call to the href owned by the second div (lastest div when is more 
than two) reloaded into the first div.

Which struts2 version?
2.3.4.1

Which struts2-jquery plugin version?
3.6.1

Please provide any additional information below.

Original issue reported on code.google.com by fritzmat...@gmail.com on 30 Aug 2013 at 2:48

Attachments:

GoogleCodeExporter commented 9 years ago
I find a hack for this problem, that work as i expected.
I use a new <sj:div href="dummy" reloadTopics="all" 
onCompleteTopics="r1,r2,r3"> who has a own reloadTopic and throw all events 
required onComplete.

I hope that well be useful for some else.

Original comment by fritzmat...@gmail.com on 16 Sep 2013 at 3:55

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for sharing your solution.

Johannes

Original comment by johgep on 24 Sep 2013 at 7:27