You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Johan Haleby <jo...@gmail.com> on 2010/09/09 16:05:32 UTC

Possible to drag tables using WicketDND?

Hi,

I'm using WicketDND to allow for drag and drop in my application. How ever I
have problems when trying to drag a tr that contains another table (i.e. I
want to drag a component whose html contains a table). I believe the reason
to be that the inner table is located on top of the tr (it fills the entire
tr) and thus the dragable source is hidden underneath. Is it possible to get
around this somehow? Perhaps using some css hacking if needed?

/Johan
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2532928.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Possible to drag tables using WicketDND?

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi Daan,

Thread [1] contains some comments about different drag-drop
implementations, their integration with Wicket and posible limitations
you will encounter.  I haven't tried WicketDND myself but it seems I
should:-)

Ernesto

References,

1-http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-td1881857.html

On Fri, Sep 10, 2010 at 11:12 AM, Daan van Etten <da...@stuq.nl> wrote:
> Which ones did you use? What are the drawbacks of the other drag and drop components?
>
> Regards,
>
> Daan
>
> Op 10 sep 2010, om 08:24 heeft Johan Haleby het volgende geschreven:
>
>>
>> It works!! Thanks a lot! WicketDND is by far the best drag and drop component
>> I've used for Wicket.
>> --
>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2533926.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Possible to drag tables using WicketDND?

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Graag gedaan.

Ernesto

On Mon, Sep 13, 2010 at 9:15 AM, Daan van Etten <da...@stuq.nl> wrote:
> Johan and Ernesto: Thanks for the info!
>
> Regards,
>
> Daan van Etten
>
> Op 10 sep 2010, om 12:23 heeft Johan Haleby het volgende geschreven:
>
>>
>> I've tried numerous different drag and drop components for Wicket in the past
>> (it was a while ago so I don't remember all of them). Each had different
>> issues that wouldn't let me do what I wanted. Some had browsers issues and
>> some had problems that couldn't drop items to the drop container when it was
>> empty. We also needed to support different types of drag and drop. In some
>> cases we wanted to copy the object that was dropped and sometimes move it. I
>> also remembered that some of the other components didn't support dnd between
>> multiple containers. I also had problems that some didn't keep an index of
>> where in the drop container the item was dropped. And so on. So I was really
>> happy when I found the wicket dnd component. It just works and it's simple
>> to use!
>>
>> /Johan
>> --
>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2534197.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Possible to drag tables using WicketDND?

Posted by Daan van Etten <da...@stuq.nl>.
Johan and Ernesto: Thanks for the info!

Regards,

Daan van Etten

Op 10 sep 2010, om 12:23 heeft Johan Haleby het volgende geschreven:

> 
> I've tried numerous different drag and drop components for Wicket in the past
> (it was a while ago so I don't remember all of them). Each had different
> issues that wouldn't let me do what I wanted. Some had browsers issues and
> some had problems that couldn't drop items to the drop container when it was
> empty. We also needed to support different types of drag and drop. In some
> cases we wanted to copy the object that was dropped and sometimes move it. I
> also remembered that some of the other components didn't support dnd between
> multiple containers. I also had problems that some didn't keep an index of
> where in the drop container the item was dropped. And so on. So I was really
> happy when I found the wicket dnd component. It just works and it's simple
> to use!
> 
> /Johan
> -- 
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2534197.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Possible to drag tables using WicketDND?

Posted by Johan Haleby <jo...@gmail.com>.
I've tried numerous different drag and drop components for Wicket in the past
(it was a while ago so I don't remember all of them). Each had different
issues that wouldn't let me do what I wanted. Some had browsers issues and
some had problems that couldn't drop items to the drop container when it was
empty. We also needed to support different types of drag and drop. In some
cases we wanted to copy the object that was dropped and sometimes move it. I
also remembered that some of the other components didn't support dnd between
multiple containers. I also had problems that some didn't keep an index of
where in the drop container the item was dropped. And so on. So I was really
happy when I found the wicket dnd component. It just works and it's simple
to use!

/Johan
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2534197.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Possible to drag tables using WicketDND?

Posted by Daan van Etten <da...@stuq.nl>.
Which ones did you use? What are the drawbacks of the other drag and drop components?

Regards,

Daan

Op 10 sep 2010, om 08:24 heeft Johan Haleby het volgende geschreven:

> 
> It works!! Thanks a lot! WicketDND is by far the best drag and drop component
> I've used for Wicket.
> -- 
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2533926.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Possible to drag tables using WicketDND?

Posted by Johan Haleby <jo...@gmail.com>.
It works!! Thanks a lot! WicketDND is by far the best drag and drop component
I've used for Wicket.
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2533926.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Possible to drag tables using WicketDND?

Posted by Sven Meier <sv...@meiers.net>.
Hi Johan,

try adding a class attribute on your outer tr (e.g. class="dragging") 
and configure the drag source accordingly:

   new DragSource(...).drag("tr.dragging")

Sven

On 09/09/2010 04:05 PM, Johan Haleby wrote:
> Hi,
>
> I'm using WicketDND to allow for drag and drop in my application. How ever I
> have problems when trying to drag a tr that contains another table (i.e. I
> want to drag a component whose html contains a table). I believe the reason
> to be that the inner table is located on top of the tr (it fills the entire
> tr) and thus the dragable source is hidden underneath. Is it possible to get
> around this somehow? Perhaps using some css hacking if needed?
>
> /Johan
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org