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.

Regards,
Pieter

On Mon, Nov 23, 2009 at 1:34 PM, Martin Makundi <
[email protected]> wrote:

> What is in draggablebehavior? That might be the problem.
>
> **
> Martin
>
> 2009/11/23 pieter claassen <[email protected]>:
> > 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
> >
> > QuestionEditPanel.java
> > ==================
> > .....
> >        questioneditorpanel=new Label("questionformatpanel",new
> > Model("AAAAAAAAAAAA"));
> >        questioneditorpanel.add(new DraggableBehavior());
> >        questioneditorpanel.setOutputMarkupId(true);
> >        //questioneditorpanel.setVisible(false);
> >        questioneditorpanel.setOutputMarkupPlaceholderTag(true);
> >
> >
> > I replace each of the these questioneditorpanels with an ajax link and
> add a
> > new DraggableBehavior to each new QuestionEditorPanel as required.
> >
> >
> >         AjaxFallbackLink editor = new AjaxFallbackLink("editor") {
> >
> >
> >            @Override
> >            public void onClick(AjaxRequestTarget target) {
> >                QuestionEditorPanel replacement=new
> > QuestionEditorPanel("questionformatpanel",
> > questionmodel,templatemodel,panel);
> >                panel.setQuestionFormatPanel(replacement);
> >                replacement.add(new DraggableBehavior());
> >                target.addComponent(replacement);
> >            }
> > --
> > Pieter Claassen
> > musmato.com
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Pieter Claassen
musmato.com

Reply via email to