[ 
https://issues.apache.org/struts/browse/WW-2793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44625#action_44625
 ] 

Dave Newton commented on WW-2793:
---------------------------------

The topic code needs to check for the type of notificaton.

In the S2.0 docs this isn't made particularly clear, but see [1] and look for 
"notifyTopics scenarios". You'll see that the notifyTopics JavaScript needs to 
check for a "before" or "after" (both successful and unsuccessful) to determine 
what to do.

I won't close it immediately (although someone else might) but please try 
correcting your code first. Also, posting a question on the struts-user list is 
recommended in situations like this, as this has come up several times in the 
past.

[1] http://struts.apache.org/2.0.11/docs/ajax-tags.html

> notifyTopics execute 2 times
> ----------------------------
>
>                 Key: WW-2793
>                 URL: https://issues.apache.org/struts/browse/WW-2793
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.11.2
>         Environment: tomcat5.5/6 spring2.5 struts2.0.11.2
>            Reporter: YE Daniel
>
> I use a <s:a/> to invoke a method,
> <s:a href="%{#test}" notifyTopics="/refresh" theme="ajax"></s:a>
> then use notifyTopics to notice div refrsh
> but the DIV refresh 2 times, on before and load event

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to