Yeah, I solved this by adding a veil over the "offending" component(AjaxEventBehavior) so that it cant be clicked while updating with the timer(AbstractAjaxTimerBehavior). And the one with remove got solved by adding a new clean label instead..

Johan Compagner wrote:
maybe adding removeBehavior wasnt such a good idea afterall ;)

the problem with nino will not be solved i think with reversing it...
because what then? then it suddenly executes a behavior on position 0 that
inst really the behavior you wanted?
thats even more dangerous....

It should fail like it does below.. The problem is that the second ajax
request is being blocked by the first
and the first removes the behavior of the second so the second ajax request
should (that would be the best)
be terminated completely on the client side. The problem is we have no idea
that that did happen..

johan


On Wed, Sep 24, 2008 at 1:47 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:

Well, you can reverse the order of behaviors. Unfortunately currently
in wicket behavior index identifies the behavior which doesn't seem to
be the most solid approach. Maybe we could do something better in 1.5.

-Matej

On Wed, Sep 24, 2008 at 1:26 PM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
Hi

Im working on something where I have an onclick AjaxEventBehavior and
also
an AbstractAjaxTimerBehavior, the timer behavior can remove the
AjaxEvent.
Sometimes I manage to fire the AjaxEventBehavior apparently when it's
removed but before the markup is updated  because I get this error:

No behavior listener found with behaviorId 1; Component: [Component id =
cell, page = com.jayway.WicketReactionGamePage, path =
0:rowView:2:cells:0:cell.Label, isVisible = true, isVersioned = true]

So would the right way be to Veil the Component holding the
AjaxEventBehavior while its being updated?



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


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




--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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

Reply via email to