You can use "refresh" instead. Or "refreshListentTopics" if you wan to use
topics. "bind" should have been there for backward compatibility (mea culpa)
regards
musachy
On 2/26/07, Adam Ruggles <a.ruggles@(protected):
>
> I'm currently in the process of migrating my webwork 2 application over
> to struts 2. I only have one more remaining issue the function
> specified on this page doesn't seem to work
> (http://struts.apache.org/2.x/docs/ajax-div-template.html).
>
> function refresh(elementId, href) {
> var elementDiv = window[elementId];
> elementDiv.href = href;
> elementDiv.bind();
> }
>
>
> Generated html on the page:
>
> <div dojotype="struts:BindDiv" id="results"
> href="/finance/search/account.action?query=accounts" showerror="true">
> ...
> <a class="number" href="javascript:;"
> onclick="refresh('results','/finance/search/account.action?query=accounts&offset=10');">2</a>
> ...
> </div>
>
> Error: elementDiv has no properties.
>
> This worked previously in webwork. I've updated the tag library and all
> the other tags work and I have <s:head theme="ajax"/> in the head
> section of the jsp page.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd