the handler is indeed needed, i made some test with a topic anyway and it
ended whith two notification (I checked that both were the same going
throught 'before' and 'load').

2007/7/24, Musachy Barroso <[EMAIL PROTECTED]>:

That's a little bit strange, in any case let me start with the obvious, do
you really need to use "handler"? In that case you will have to make the
request yourself, if you are looking for notification before/after the
request, use the "notifyTopics" attribute.

musachy

On 7/24/07, David Binder <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm new to the mailling list. My company sold a struts 2 project to one
of
> its customer. And no I'm lost in struts 2 Dojo wonderland.
>
> It happens that when I create a simple dojo widget (anchor), either my
> widget is parsed twice by Dojo or the topic is registered twice, anyway,
> the
> event associated is triggered twice.
>
> here is the piece of code
>
> <script type="text/javascript">
>    function handler(widget, node) {
>       // do the stuff
>    }
> </script>
>
> ...
>
> <s:url id="cancelUrl" action="cancelMPSA">
>    <s:param name="idMP" value="'500'"/>
> </s:url>
> <s:a id="a" href="%{cancelUrl}" theme="ajax" handler="handler">
>    <img src="<s:property value="#clear"/>" alt="Annuler" />
> </s:a>
>
> Does anyone know a workaround for this problem ?
>



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

Reply via email to