Could you post a minimal example of your jsp? musachy
On Fri, Apr 4, 2008 at 11:06 AM, manishbel <[EMAIL PROTECTED]> wrote: > > Thanks for the response Musachy, > > The problem still persists. i went ahead and tried to follow one of the > examples on struts showcase " A div > that will listen to events to refresh and start/stop autoupdate". the > result was the same. > > I also tried by copying the whole example into my application. the page > continues to refresh over and over. and i see multiple sections being added > and eventually the browser hangs. > > I am not sure what's going on as i am not very well versed with struts 2 or > Ajax. > > Any ideas? > > Thanks > Manish. > > > > > Musachy Barroso wrote: > > > > 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] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Connecting-s%3Aautocompleter-and-s%3Adiv-tp16467820p16491866.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]