Hi,

I just added "old AJAX behaviors" for backward compatibility.

On Fri, Feb 15, 2013 at 8:28 PM, Emond Papegaaij
<[email protected]>wrote:

> DroppableBehavior is the replacement of DroppableAjaxBehavior. You use it
> like this:
>
> final DroppableBehavior droppableBehavior = new DroppableBehavior();
> droppableBehavior.setDropEvent( new AjaxDropCallback() {
>     protected void drop(AjaxRequestTarget target, Component source,
> Component dropped) {
>         // [...]
>     }
> } );
> droppableBehavior.setAccept( new DroppableAccept( ".fileItem" ) );
> droppableBehavior.setHoverClass( "dropHover" );
> add( droppableBehavior );
>
> Best regards,
> Emond
>
>
> On Fri, Feb 15, 2013 at 2:20 PM, Martin Dietze <[email protected]> wrote:
>
> > Another thing I am stuck trying to port my project from Wicket
> > 1.4.x to 6.6.0 is DND-mechanics which so far had been
> > implemented using wiquery 1.2.
> >
> > As I see the 'DroppableAjaxBehavior' class has disappeared from
> > wiquery since the 6.0 release. However no mention could be found
> > on either migration pages or mailing lists.
> >
> > So far DND had been implemented like this:
> >
> > | final DroppableAjaxBehavior droppableBehavior = new
> > DroppableAjaxBehavior<Item<Foo>>() {
> > |     @Override
> > |     public void onDrop( Item<Foo> item, AjaxRequestTarget target ) {
> > |       // [...]
> > |     }
> > | };
> > | droppableBehaviour.getDroppableBehavior().setAccept( new
> > DroppableAccept( ".fileItem" ) );
> > | droppableBehaviour.getDroppableBehavior().setHoverClass( "dropHover" );
> > | add( droppableBehaviour );
> >
> > Now as there's no DroppableAjaxBehavior anymore and no hint on
> > what replaced it I'm lost. I found a DroppableBehavior coming with
> > wiquery 6.2.0, but I can't see how this could be a simple
> > replacement, and to make things worse, there does not seem to be
> > any sample code for 6.2.0-based DND around.
> >
> > Any hints?
> >
> > Cheers,
> >
> > M'bert
> >
> > --
> > ----------- / http://herbert.the-little-red-haired-girl.org /
> > -------------
> > =+=
> > WE ARE THE BORG - RESISTANCE IS VOLTAGE DIVIDED BY CURRENT!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>

Reply via email to