Found that when panel is constructed like:
public MyPage() {
...
add(new MyPanel("panelId"));
...
}
markup of a draggable element is:
<span id="id123456" class="myClass ui-draggable" ... >[]</span>
However when:
...
@Override
public void onClick(AjaxRequestTarget target) {
Panel panel = new MyPanel("panelId");
addOrReplace(panel);
target.addComponent(panel);
}
markup of a draggable element is:
<span id="id123456" class="myClass" ... >[]</span>
that is 'ui-draggable' is not found (stripped ? not added?)
in 'class' attribute of draggable element.
Any help is welcommed,
Stefan
--- On Thu, 6/18/09, Stefan Jozsa <[email protected]> wrote:
> From: Stefan Jozsa <[email protected]>
> Subject: WicketJQuery: Drag & drop behavior lost for components of AJAX
> updated panels
> To: [email protected]
> Date: Thursday, June 18, 2009, 1:44 PM
>
> Doing:
> public MyPage() {
> ...
> add(new MyPanel("panelId"));
> ...
> }
> dragging elements (having DraggableBehavior) of 'MyPanel'
> works.
>
> However doing:
> ...
> @Override
> public void onClick(AjaxRequestTarget target)
> {
> Panel panel = new
> MyPanel("panelId");
> addOrReplace(panel);
> target.addComponent(panel);
> }
>
> dragging elements of 'MyPanel' DO NOT works
> (DraggableBehavior is lost).
>
>
> What's going on ?
> Any help is (very) appreciated,
> thanks Stefan
>
> Using:
> Wicket-1.4.rc4,
> WicketJQuery-0.3.4
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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]