[
https://issues.apache.org/struts/browse/WW-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-2940.
---------------------------------
Resolution: Won't Fix
Closing dojo related tickets as "Won't fix". if you have a patch for this
issue, feel free to attach it and re-open.
> ajax div register topic multiple times on jsp reload
> ----------------------------------------------------
>
> Key: WW-2940
> URL: https://issues.apache.org/struts/browse/WW-2940
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.14
> Environment: struts-2.0.14, jboss 4.2.3, java-1.6.0.05
> Reporter: Felipe Fraga
>
> I have posted this to the user list, but didn't get a feedback. After some
> tries I started to believe this is a bug. I am posting the same message I
> posted to the user list.
> I have big DIV (let's call it BIGDIV) that I will
> fill with a JSP that have another div (let's say SMALLDIV) with a
> listenTopics parameter set. Below you can see the SMALLDIV:
> <s:url id="urlShowProfilesListing" namespace="/users"
> action="showProfilesListing" />
> <s:div id="divProfilesListing"
> href="%{urlShowProfilesListing}"
> theme="ajax"
> listenTopics="/updateProfilesListing" />
> Now, supose that after the user is done with this page he navigates to
> another one. So I replace the content of BIGDIV with another JSP.
> Later on the user decides to comeback to the page that contains
> SMALLDIV. So I replace the contents of BIGDIV and once again it has
> the JSP that contains the SMALLDIV. Then it happens.
> The SMALLDIV registers another function (I guess) to that same topic.
> So, every time I load the JSP with SMALLDIV, the Action method that
> refreshes it is called one time more than the previous load.
> To make it clearer:
> First SMALLDIV load the actions logs is:
> 13:29:43,813 INFO [ShowOperatorsListingAction] ::: Executing Profile Listing
> 13:29:44,090 INFO [SaveOperatorAction] ::: Executing Save Profile
> 13:29:44,765 INFO [ShowOperatorsListingAction] ::: Executing Profile Listing
> Second SMALLDIV load the actions logs is:
> 13:29:43,533 INFO [ShowOperatorsListingAction] ::: Executing Profile Listing
> 13:29:43,813 INFO [ShowOperatorsListingAction] ::: Executing Profile Listing
> 13:29:44,090 INFO [SaveOperatorAction] ::: Executing Save Profile
> 13:29:44,765 INFO [ShowOperatorsListingAction] ::: Executing Profile Listing
> 13:29:44,951 INFO [ShowOperatorsListingAction] ::: Executing Profile Listing
> And so on....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.