[
https://issues.apache.org/struts/browse/WW-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-2161.
---------------------------------
Resolution: Not A Problem
Please read the ajax tags documentation, the topic specified in "notifyTopics"
will be published before and after the request, that's why you will see 2 calls
to that function. A paremeter is passed to the topic which will be "before" ,
"load" (after request) or "error" if there was an error. On 2.1 we will have
separate topics for each case.
> subscription of ajax anchor tag is called repeatedly
> ----------------------------------------------------
>
> Key: WW-2161
> URL: https://issues.apache.org/struts/browse/WW-2161
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: 2.0.8
> Environment: WinXP, Tomcat 5.5, Sping 2.0.6, Struts 2.0.8
> Reporter: Jan Helbig
> Fix For: 2.0.12
>
>
> i do following steps:
> - render a ajax anchor with a subscription to a topic (<s:a theme="ajax"
> listenTopics="/myTopic" ... />)
> - when the topic is published, the link will be executed once
> - render the snippet with the ajax anchor again -> new subscription to the
> topic
> - when the topic is published the link will be executed twice
> - render the snippet with the ajax anchor again -> new subscription to the
> topic
> - when the topic is published the link will be executed three times
> and so on...
> for each rendering of the ajax anchor will a new subscription to the topic
> added, but the old subscriptions are still active
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.