setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior stops working. I don't know why this is happening? Any tips on where to start looking? Thanks, Pieter

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Martin Makundi
What is in draggablebehavior? That might be the problem. ** Martin 2009/11/23 pieter claassen pie...@claassen.co.uk: The code below works but the moment that I set my questioneditorpanel as invisible to start with (even with the setOutputMarkupPlaceholder(true)), the the draggable behavior

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
Sorry, this is from the jwicket-ui-dragdrop-1.4.1 project. org.wicketstuff.jwicket.ui.dragdrop.DraggableBehavior I don't know what is in it :-( This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears.

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Martin Makundi
This drabable code works fine until I set isVisible(false) on the panel I want to drag around. Then all ajax events from dragging the panel disappears. Do you really expect to drag something that is not rendered on the browser? ** Martin Regards, Pieter On Mon, Nov 23, 2009 at 1:34 PM,

Re: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread pieter claassen
Note that in the AjaxLink I create a new replacement panel, add a dragging behavior to it and then replace the old one with it (code below). My question is that even though I add a draggable behavior to the new panel and do the proper replacement, it stops working as soon as I start of with an

RE: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Craig McIlwee
but sounds reasonable eh? Craig -Original Message- From: pieter claassen [mailto:pieter.claas...@gmail.com] Sent: Monday, November 23, 2009 8:22 AM To: Martin Makundi Cc: users@wicket.apache.org Subject: Re: setVisible(false) kills DraggableBehavior() Note that in the AjaxLink I create a new

RE: setVisible(false) kills DraggableBehavior()

2009-11-23 Thread Craig McIlwee
@wicket.apache.org Subject: RE: setVisible(false) kills DraggableBehavior() Last time I checked, and it's been a while, the setOutputMarkupPlaceholderTag behavior was to create an element like div id='wicketId' style='not visible' / and then when you set it back to visible you end up