Hi felipa,

Can u refer this below url:

http://javachamp.blogspot.com/search/label/ajax%20dropdown

if it gives u solution. Please inform me.

With Regards,
Ashok


Felipe Fraga wrote:
> 
> Greetings all,
> 
> I'm having trouble understanding the notify/listen topics dynamics.
> 
> According to the following link in the "notify topics scenario":
> http://struts.apache.org/2.0.11/docs/ajax-tags.html
> 
> When a DIV listens to a topic that is being notified, it should be
> refreshed once before the execution of the action, and one more time
> after the action completes. In my case, it is being refreshed several
> times before and another several times after. The number of times
> seems to be randomic.
> 
> I have the following JSP with 2 DIVs. The one on the bottom listens to
> a Topic notified by a submit that is in another JSP, more precisely,
> in the JSP loaded on the upper div.
> 
> Below is the DIVs structure:
> 
> <fieldset>
>       <legend>Operator Form</legend>
>       <s:url id="urlShowSaveOperatorForm" namespace="/users"
> action="saveOperator!input" />
>       <s:div
>                       id="divSaveOperator"
>                       href="%{urlShowSaveOperatorForm}"
>                       theme="ajax"
>                       loadingText="Loading operator form..."
>                       cssClass="innerdiv" />
> </fieldset>
> 
> <br>
> 
> <fieldset>
>       <legend>Operators Listing</legend>
> <s:url id="urlShowOperatorsListing" namespace="/users"
> action="showOperatorsListing" />
> <s:div
>               id="divOperatorsListing"
>               href="%{urlShowOperatorsListing}"
>               theme="ajax"
>               listenTopics="updateOperatorsListing"
>               loadingText="Loading operators listing..."
>               cssClass="innerdiv" />
> </fieldset>
> 
> And below there is the submit that notifies the topic:
> 
> <s:submit value="Update"
> targets="divSaveOperator"                                             
> notifyTopics="updateOperatorsListing"                                         
>           loadingText="Loading
> operator's form..." />
> 
> Still below, there is my log of the actions execute methods being
> called. You can notice the method of the refresh list being called
> several times before and anfter the Save Profile method.
> 
> 15:34:22,706 INFO  [ShowProfilesListingAction] ::: Executing Profiles
> Listing
> 15:34:22,780 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:22,797 INFO  [SaveProfileAction] ::: Executing  Save Profile
> 15:34:22,819 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:22,841 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,146 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,197 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,219 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,241 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 
> Can anybody help me?
> 
> Thanks a lot.
> 
> Felipe Fraga
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Notify-Listen-Topics-dynamics-tp21168939p21172329.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to