Greetings all,

I have the same issue as before, but now I think I understand what's
going on. I thought it was solved before because coincidences played
tricks on me.

Here is the thing, 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....

I would really appreciate help on this one, since now that I think I
understand what's going on, I am not sure how to move on with it.

Maybe it's bad design of my pages? Can anyone suggest something else
if that's the case? If not some workarounds?

Thx to all,

Felipe Fraga

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to