The problem is that the notify topics are published multiple times
(before request, after request and on error). A parameter is passed to
the topic listener indicating when the topic is fired. Search the
archives for examples (dojo.event.topic.subscribe), also look at the
ajax examples on showcase.

musachy

On Thu, Apr 3, 2008 at 1:00 PM, manishbel <[EMAIL PROTECTED]> wrote:
>
>  Hello There,
>
>  I am new to struts and have a requirement where i have to connect the
>  autocompleter with the div e.g. when autocompleter's value changes  i need
>  to refresh the contents of the div. i have written the following code to
>  achieve that.
>
>  The Div Code
>  --------------
>  <s:div cssClass="formcontainer" href="%{EmailDistributionList_Load}"
>  theme="ajax" listenTopics="distributionListNameChange" autoStart="false"
>  formId="EmailDistributionList" >
>
>  The AutoCompleter Code
>  -------------------------
>  <s:autocompleter name="emailDistributionList.distributionListName"
>  keyName="emailDistributionList.id"
>                         list="emailDistributionLists"  listKey="id"
>                         listValue="distributionListName" 
> searchType="substring"
>  notifyTopics="distributionListNameChange" theme="ajax" />
>
>  When the jsp loads it tries to refresh the page over and over submitting the
>  request to EmailDistributionList_Load action.
>
>  Any pointers would be greatly appreciated.
>
>  Thanks
>  Manish
>
>  --
>  View this message in context: 
> http://www.nabble.com/Connecting-s%3Aautocompleter-and-s%3Adiv-tp16467820p16467820.html
>  Sent from the Struts - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to