You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Daniel Ferreira Castro <df...@gmail.com> on 2009/04/01 19:41:28 UTC

Re: drag and drop

I was reading the drag and drop thread, started on March 19th and trying to
use the *yui *ajax implementation as the yui example suggests.But I am
recieving an exception like that

It is wierd because I declared the class field TargetSlot as transient.  No
matter if I declare it as transient or not, the result is the same.

Did anyone have any similar bug?  how to solve it?

ERROR - Objects                    - Error serializing object class
com.jasp.ecommfwk.pages.common.layout.Index [object=[Page class =
com.jasp.ecommfwk.pages.common.layout.Index, id = 0, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class:
org.wicketstuff.yui.markup.html.dragdrop.TargetSlot
Field hierarchy is:
  0 [class=com.jasp.ecommfwk.pages.common.layout.Index, path=0]
    private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
      private org.apache.wicket.markup.html.link.PopupSettings
org.apache.wicket.markup.html.link.Link.popupSettings[2]
[class=org.apache.wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel,
path=0:tabs]
        private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
          private org.apache.wicket.markup.html.link.PopupSettings
org.apache.wicket.markup.html.link.Link.popupSettings[1]
[class=com.jasp.ecommfwk.pages.common.layout.panels.configuracao.ConfiguracaoPanel,
path=0:tabs:panel]
            private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.extensions.markup.html.tabs.TabbedPanel,
path=0:tabs:panel:Configuracoes]
              private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                private org.apache.wicket.markup.html.link.PopupSettings
org.apache.wicket.markup.html.link.Link.popupSettings[1]
[class=com.jasp.ecommfwk.pages.vitrine.ConfiguracaoVitrinePanel,
path=0:tabs:panel:Configuracoes:panel]
                  private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                    private final java.lang.Object[]
org.apache.wicket.model.StringResourceModel.parameters[0][2]
[class=org.wicketstuff.yui.markup.html.dragdrop.DragDropGroup,
path=0:tabs:panel:Configuracoes:panel:dragDrop]
                      private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                        private java.lang.Object
org.apache.wicket.markup.html.form.FormComponent.validators[2]
[class=org.wicketstuff.yui.markup.html.dragdrop.DragDropGroup$3,
path=0:tabs:panel:Configuracoes:panel:dragDrop:targetListView]
                          java.lang.Object org.apache.wicket.Component.data
[class=org.apache.wicket.model.util.ListModel]
                            private java.lang.Object
org.apache.wicket.model.util.GenericBaseModel.object
[class=java.util.ArrayList]
                              private java.lang.Object
org.apache.wicket.model.util.GenericBaseModel.object[write:1]
[class=org.wicketstuff.yui.markup.html.dragdrop.TargetSlot] <----- field
that is not serializable
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:349)
at
org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
at
org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:497)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1116)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:504)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
at
org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:687)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:127)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1097)
at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:199)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:814)
at
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:327)
at org.apache.wicket.Session.requestDetached(Session.java:1398)
at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1118)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1396)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.io.NotSerializableException:
org.wicketstuff.yui.markup.html.dragdrop.TargetSlot
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at org.apache.wicket.Component.writeObject(Component.java:4395)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:119)
... 26 more
INFO  - xServerAndClientTimeFilter - 609ms server time taken for request
?wicket:interface=:0:tabs:tabs-container:tabs:2:link::IBehaviorListener:0:&random=0.24121064195549574
response size: 18270

On Fri, Mar 20, 2009 at 3:16 AM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> Yep! I abandoned it because I hat to remove all Droppables associated with
> my component before any AJAX round trip  that updated the component. This
> was a nightmare because that component could be embedded into others
> components that would refresh using AJAX, so the whole setting was very
> fragile... So, I switched to YUI and the problem was gone.
>
> Ernesto
>
> On Thu, Mar 19, 2009 at 10:19 PM, Stefan Lindner <lindner@visionet.de
> >wrote:
>
> > It is still there. I had massive problems with updating dropable items in
> a
> > table with ajax.
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Ernesto Reinaldo Barreiro [mailto:reiern70@gmail.com]
> > Gesendet: Donnerstag, 19. März 2009 21:31
> > An: users@wicket.apache.org
> > Betreff: Re: drag and drop
> >
> > I would use YUI drag and drop instead of scriptaculous. I was using
> > scriptaculous for that purpose, I just implemented a table with draggable
> > columns, but I had some issues with AJAX updates on IE: after first page
> > reload draggables stoped to work because dropables had to be
> > removed/recreated. There was a thread on this list, long time ago,
> > explaining this issue. Meanwhile I don't know if this is still an issue
> > with
> > newer version of scriptacoplus....
> >
> > Think it is stil there
> >
> > http://wiki.github.com/madrobby/scriptaculous/droppables
> >
> >
> > See Removing DroppablesBut maybe this is not an issue for your use case.
> >
> > Switching to YUI made acomplishing the task a lot easier. There is
> already
> > some code for YUI drag-drop at YUI integration.
> >
> > Best,
> >
> > Ernesto
> >
> > On Thu, Mar 19, 2009 at 9:24 AM, tbt <na...@yahoo.com> wrote:
> >
> > >
> > > Hi
> > >
> > > I am a newbie to wicket and I want to create a page where images can be
> > > dragged and dropped. I had a look at wicketstuff-scriptaculous and
> > > downloaded the jar file but it is not compatible with wicket 1.3.2. Can
> > > someone provide me the link so that I can download the jar file
> straight
> > > away which is compatible with the wicket version that I am using. Any
> > > suggestions as to how this should be implemented using wicket is also
> > > welcome.  eg: wicket-dojo, wicket-jquery, wicket-prototype etc
> > >
> > > Thanks
> > > --
> > > View this message in context:
> > > http://www.nabble.com/drag-and-drop-tp22595081p22595081.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
> >
> >
>



-- 
"Two rules to succeed in life:
1 - don´t tell people everything you know."
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

AW: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
Perhaps you could try jWicket from wicketstuff http://www.wicketstuff.org/ (site is down at the moment).
You could check aout the source from http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent and build the project with "maven install"

Stefan

-----Urspr�ngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de]
Gesendet: Mi 19.05.2010 09:26
An: users@wicket.apache.org
Betreff: Re: drag and drop
 

Hi,
I'm working on a wicket-project (1.4) and need to implement some drag&drop
features. Could you give me some current links of tutorials to start with. 
I also don't know which "technology" to choose: YUI, DOJO, scriptaculous ???

Thank you for your help
Bernd

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2222375.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: drag and drop

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

The issue is [1]. I discovered it while I was working on [2]: a grid
component allowing to sort columns by dragging them. That feature
works fine in any other browser I have tested (FF, Chrome, Opera)
except  any version (I have tested) of IE. I was able to reproduce the
issue using Wicket AJAX replaceOuterHTML function but not with simple
DOM manipulations as they asked... With simple DOM manipulations I was
able to produce other errors:-( I was planing to try to reproduce it
using jquery's own AJAX but other more pressing matters made me set it
aside:-(. I think Stefan posted his fix on that thread ([1]) but they
didn't react...

Probably Stefan can further comment on the nature of the issue as it
seems he did a more thorough investigation while building his fix.

Best,

Ernesto

References.

1-http://forum.jquery.com/topic/drag-and-drop-problems-after-ajax-refresh-on-ie
2-http://code.google.com/p/wijqgrid/source/browse/#svn/trunk/wijqgrid/src/main/java/com/jquery/antilia/grid

On Wed, May 19, 2010 at 1:16 PM, David Leangen <wi...@leangen.net> wrote:
>
> Can you provide a link to the issue?
>
> I'll vote for it. Maybe lots of other people on this list could do the same.
> ;-)
>
>
>
>
> On May 19, 2010, at 8:14 PM, Ernesto Reinaldo Barreiro wrote:
>
>> Hi Istvan,
>>
>> Don't take me wrong but: can you "confirm" that any other third party
>> plugins you want to integrate with your application will work with the
>> patched version of jquery? I know Stefan  has tested a lot his fix but
>> you cannot be 100% sure that this fix will not brake other untested
>> functionality (that was built against the original jquery). I want to
>> make clear that I'm NOT trying to imply that there is something wrong
>> with Stefan's fix, it's just that I do prefer NOT to use jquery D&D
>> till they officially fix it: which does not seem to be any time soon
>> if one judge their reaction to the issue I have created at their forum
>> and the many times  the issue has been reported.
>>
>> Best,
>>
>> Ernesto
>>
>> On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa <st...@yahoo.com>
>> wrote:
>>>
>>> I can confirm, that it _IS_ patched, drag&drop works on IE.
>>>
>>> Istvan
>>>
>>>> ... think Stefan has patched the jquery.js file to get it
>>>> working for his
>>>> jWicket project.
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>

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


Re: drag and drop

Posted by David Leangen <wi...@leangen.net>.
Can you provide a link to the issue?

I'll vote for it. Maybe lots of other people on this list could do the  
same. ;-)




On May 19, 2010, at 8:14 PM, Ernesto Reinaldo Barreiro wrote:

> Hi Istvan,
>
> Don't take me wrong but: can you "confirm" that any other third party
> plugins you want to integrate with your application will work with the
> patched version of jquery? I know Stefan  has tested a lot his fix but
> you cannot be 100% sure that this fix will not brake other untested
> functionality (that was built against the original jquery). I want to
> make clear that I'm NOT trying to imply that there is something wrong
> with Stefan's fix, it's just that I do prefer NOT to use jquery D&D
> till they officially fix it: which does not seem to be any time soon
> if one judge their reaction to the issue I have created at their forum
> and the many times  the issue has been reported.
>
> Best,
>
> Ernesto
>
> On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa  
> <st...@yahoo.com> wrote:
>> I can confirm, that it _IS_ patched, drag&drop works on IE.
>>
>> Istvan
>>
>>> ... think Stefan has patched the jquery.js file to get it
>>> working for his
>>> jWicket project.
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: AW: drag and drop

Posted by Ramona <vi...@hotmail.com>.
HI all!
I'm trying to use wicket with html5 for drag and drop multiple files but i
haven't found the way to communicate the javascript of html (the one that
representates drag & drop: ) with wicket in each upload.
Let's say that i have a page where i can drop files and for each file that a
drop i have to add a new component to the page (like a panel) that will show
information about the file that is being upload.
I have html code for the page (wich includes javascript for doing the drag &
drop) but in each drop that is detected in that javascript i have to start
uploading the file and adding the components as i said before.
My problem is that i don't know where exactly do this connection.
I can't use other libraries just wicket, hmtl5 .
I'm just looking for new ideas, i have being using list views for the upload
so that in each populate i can add it the panel but i stil don't know hoy to
connect things.
Thanks a lot!
Regards,
Ramona.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p3782634.html
Sent from the Users forum 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: AW: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
This is a question for jQuery-UI mailing lists. It's independent from the jWicket implementation. 

-----Ursprüngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de] 
Gesendet: Donnerstag, 17. Juni 2010 11:35
An: users@wicket.apache.org
Betreff: Re: AW: drag and drop


Hi,
I've got a problem with my draggable Components and z-index. I do have
several draggable WebMarkupContainers that are nested in also draggable
Panels.


I set the z-index with 
dragger.setRawOptions("zIndex: 101"); for the WebMarkupContainer
dragger.setRawOptions("zIndex: 100"); for the Panel

When I dragg the WebMarkupContainer, the ParentPanel also starts to move.


When I only set
dragger.setRawOptions("zIndex: 101"); for the WebMarkupContainer
and don't set the zIndex for the Panel

only the draggable WebMarkupContainer moves but the z-index does not work
out of the area of the parent panel.

I don't use the .ui-draggable-dragging {} for setting the z-index because I
want to set different z-indexes for the draggable Components.

Hope you can help me out

Thanks a lot

Bernd





-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2258492.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: AW: drag and drop

Posted by DerBernd <be...@web.de>.
Hi,
I've got a problem with my draggable Components and z-index. I do have
several draggable WebMarkupContainers that are nested in also draggable
Panels.


I set the z-index with 
dragger.setRawOptions("zIndex: 101"); for the WebMarkupContainer
dragger.setRawOptions("zIndex: 100"); for the Panel

When I dragg the WebMarkupContainer, the ParentPanel also starts to move.


When I only set
dragger.setRawOptions("zIndex: 101"); for the WebMarkupContainer
and don't set the zIndex for the Panel

only the draggable WebMarkupContainer moves but the z-index does not work
out of the area of the parent panel.

I don't use the .ui-draggable-dragging {} for setting the z-index because I
want to set different z-indexes for the draggable Components.

Hope you can help me out

Thanks a lot

Bernd





-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2258492.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


AW: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
.iterator()

Stefan

-----Ursprüngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de] 
Gesendet: Mittwoch, 9. Juni 2010 09:44
An: users@wicket.apache.org
Betreff: Re: drag and drop


Hi,
little question at this point. How do I get the child-components of an
RepeatingView. Isn't there any kind of Collection?
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2248428.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: drag and drop

Posted by DerBernd <be...@web.de>.
Hi,
little question at this point. How do I get the child-components of an
RepeatingView. Isn't there any kind of Collection?
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2248428.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: drag and drop

Posted by Istvan Jozsa <jo...@gmail.com>.
My seqnums are persistently stored,
when items are retrieved so the seqnum.
I used models to pass and get item data:

@Override
public void populateItem(final Item<ItemData> item) {
    final ItemData itemData = item.getModelObject();
    item.add(new MyLink("title", new DraggableModel<ItemData>(itemData) {
        @Override
        public String getObject() {
            return itemData.getTitle();
        }
        @Override
        public DraggableModel<?> onDrop(AjaxRequestTarget target,
DroppableModel<?> droppableModel) {
            // check where the item was dropped (my items can be dropped in
more containers)
            if (droppableModel.getType() == Droppable.RESEQUENCER) {
                // clip D&D-ed into clip seqnum updater
                Integer newSeqnum = (Integer) (droppableModel.getMobject());
                if (newSeqnum.equals(itemData.getSeqnum())) {
                    return null;
                }
                // update your data in persistent store
                return null;
            } // else (if any)
        }
    }
    add(new DraggableBehavior() {
        {
            setName(Draggable.PRODUCT.name());
            setRevert(DraggableBehavior.DragRevertMode.ALWAYS);
            setRevertDuration(0);
            setHelper(DragHelperMode.CLONE);
            setOpacity(Opacity.LOW);
        }
    });
    add(new DroppableBehavior() {
        {
            setHoverClass("resequencerHover");
            setTolerance(DropTolerance.POINTER);
            setDraggablesAcceptedByDroppable(new
DraggablesAcceptedByDroppable(Draggable.PRODUCT.name()));
        }
        @Override
        protected void onDrop(AjaxRequestTarget target, final Component
component, final SpecialKeys keys) {
            DraggableModel<ItemData> model = (DraggableModel<ItemData>)
component.getDefaultModel();
            // the container invokes the onDrop() callback of item, passing
container's data, so that
            // the item can figure out where was dropped
            model.onDrop(target, new
DroppableModel<Integer>(Droppable.RESEQUENCER, itemData.getSeqnum()));
        }
    });
    add(new AttributeAppender("class", true, new
AbstractReadOnlyModel<String>() {
        @Override
        public String getObject() {
            return "resequencer";
        }
    }, " "));
}
public abstract class DraggableModel<T> extends
AbstractReadOnlyModel<String> {
    protected Draggable type;
    protected T mobject;
    public DraggableModel(Draggable type) {
        this.type = type;
    }
    public DraggableModel(T object) {
        this.mobject = object;
    }
    public DraggableModel(Draggable type, T object) {
        this.type = type;
        this.mobject = object;
    }
    public final T getMobject() {
        return mobject;
    }
    public Draggable getType() {
        return type;
    }
    @Override
    public String getObject() {
        return null;
    }
    /**
     * Callback, invoked by 'droppable' when it accepts this draggable.
     * Implementers should call droppable's onDrop() if droppable is not
null.
     * @param target
     * @param droppableModel
     * @return
     */
    public abstract DraggableModel<?> onDrop(AjaxRequestTarget target,
            DroppableModel<?> droppableModel);
}
public class DroppableModel<T> extends AbstractReadOnlyModel<String> {
    protected Droppable type;
    protected T mobject;
    public DroppableModel(Droppable type) {
        this.type = type;
    }
    public DroppableModel(T object) {
        this.mobject = object;
    }
    public DroppableModel(Droppable type, T object) {
        this.type = type;
        this.mobject = object;
    }
    public DroppableModel() {
        throw new UnsupportedOperationException("Type required");
    }
    public final T getMobject() {
        return mobject;
    }
    public Droppable getType() {
        return type;
    }
    @Override
    public String getObject() {
        return null;
    }
    /**
     * Callback, invoked by 'draggable' after this droppable invoked
draggable's onDrop().
     * Implementers should call draggable's onDrop() if draggable is not
null.
     * @param target
     * @param draggableModel
     * @return
     */
    public DroppableModel<?> onDrop(AjaxRequestTarget target,
DraggableModel<?> draggableModel) {
        return null;
    }
}
public enum Droppable {
    TRASH, RESEQUENCER /* etc */;
}
public enum Draggable {
    PRODUCT, USER /* etc */;
}

Hoping that copy&paste&adjustments are OK,

Istvan

On Mon, Jun 7, 2010 at 3:02 PM, DerBernd <be...@web.de> wrote:

>
> Ok,
> I think I understood, but how do you get the seqnum?
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2245847.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: drag and drop

Posted by DerBernd <be...@web.de>.
Ok,
I think I understood, but how do you get the seqnum?
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2245847.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: drag and drop

Posted by Istvan Jozsa <jo...@gmail.com>.
You can implement by adding DraggableBehavior *and* DroppableBehavior to
each item,
something like this:

add(new DraggableBehavior() {
    {
        setName("someName");
        setRevert(DraggableBehavior.DragRevertMode.ALWAYS);
        setRevertDuration(0);
        setHelper(DragHelperMode.CLONE);
        setOpacity(Opacity.LOW);
    }
});
add(new DroppableBehavior() {
    {//{
        setHoverClass("resequencerHover");
        setTolerance(DropTolerance.POINTER);
        setDraggablesAcceptedByDroppable(new
DraggablesAcceptedByDroppable("someName"));
    }//}
    @Override
    protected void onDrop(AjaxRequestTarget target, final Component
component, final SpecialKeys keys) {
        // get seqnum (sequence number)
        // if source and target seqnum are the same then ignore
        // update data (maybe even in persistent store, AKA database)
        // refresh container containing your list
(target.addComponent(listContainer);)
    }
});
add(new AttributeAppender("class", true, new AbstractReadOnlyModel<String>()
{
    @Override
    public String getObject() {
        return "resequencer";
    }
}, " "));

CSS:
.resequencer {
    border-top: 3px solid transparent;
}
.resequencerHover {
    border-top: 3px solid #000000;
}

This is just the rough idea (my case is more complicated).

Istvan (aka Stefan)


On Mon, Jun 7, 2010 at 12:26 PM, DerBernd <be...@web.de> wrote:

>
> Hi,
> another question of mine:
> Is there any implementation of an "Sortable" where I can change order of
> <li> items within an <ul> by dragging and dropping. Or what would even be
> better: change order of Components in an RepeatingView.
>
>
> I found the org.wicketstuff.jquery.dnd.DnDSortableHandler. But do not
> really
> know how to make it work, cause I found no examples on the web.
>
> Thanks a lot
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2245708.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: drag and drop

Posted by DerBernd <be...@web.de>.
Hi,
another question of mine:
Is there any implementation of an "Sortable" where I can change order of
<li> items within an <ul> by dragging and dropping. Or what would even be
better: change order of Components in an RepeatingView.


I found the org.wicketstuff.jquery.dnd.DnDSortableHandler. But do not really
know how to make it work, cause I found no examples on the web.

Thanks a lot
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2245708.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: drag and drop

Posted by DerBernd <be...@web.de>.
Ok, thank you,
good to know. At the moment I don't need to watch the dragStop or DragStart
Event. So I can leave it as it is.





-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2243182.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: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
This is a general Ajax problem. The ajax calls fired by the jQuery handlers dragStart/drag/dragEnd are not sychronized with each other. So it may happen that the onDrop event of the droppable is fired BEFORE the dragEnd.
In the onDrop method you replace the dragged component wit a new one (redrawing your repeaters).
Then, afterwards, the dragStop event occurs and your component no longer exists.
If you really need to watch teh dragStop in addition to the onDrop, you need to synchronize your actions. This means you have to wait for the onDrop response BEFORE you redraw you components or in othe rwords: move the onDrop code to the onDragEnd.

Sorry, but this is a general problem that can't be fixed in jWicket.

Stefan

-----Ursprüngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:36
An: users@wicket.apache.org
Betreff: RE: drag and drop


So here is my Example Case
I have several "Platzhalter" which implement IDroppable and some
"FeldKurs"Objects which implement IDraggable. The FeldKurs Components are 
dragged on Placeholders.

When I define
dragger.setWantOnDragStartNotification(true);
dragger.setWantOnDragStopNotification(true);
there occurs an error like:
"WicketMessage: org.apache.wicket.WicketRuntimeException: component
panelInhalt:listPanel:panelWochenplanung:platzhalter_t0r0:listPanel:feldKurs101
not found on page kursa.wochenplanung.WochenplanungPage[id = 3], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]"


When I set them false or don't even set anything (default) the error doesn't
occur

Heres the code

public class Platzhalter extends Panel implements IDroppable{

...
private final RepeatingView listPanel;

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
			SpecialKeys specialKeys) {
		this.listPanel.add(draggedComponent);
		WochenplanungPage wochenplanungPage = findParent(WochenplanungPage.class);
                          // Parent Page of Platzhalter
		target.addComponent(wochenplanungPage);
	}
}


public class FeldKurs extends Panel implements IDraggable{
...

public FeldKurs(String id, Kurs kurs) {
		super(id);
		this.kurs = kurs;
		dragger = new DraggableBehavior();
		dragger.setRevert(DraggableBehavior.DragRevertMode.INVALID);
		dragger.setDistance(20);
		dragger.setOpacity(0.99);
                          dragger.setName("one");
		dragger.setWantOnDragStartNotification(true);
		dragger.setWantOnDragStopNotification(true);
		dragger.setCursor(CssCursor.MOVE);
		add(dragger);

}
...
}




-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242938.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: drag and drop

Posted by DerBernd <be...@web.de>.
So here is my Example Case
I have several "Platzhalter" which implement IDroppable and some
"FeldKurs"Objects which implement IDraggable. The FeldKurs Components are 
dragged on Placeholders.

When I define
dragger.setWantOnDragStartNotification(true);
dragger.setWantOnDragStopNotification(true);
there occurs an error like:
"WicketMessage: org.apache.wicket.WicketRuntimeException: component
panelInhalt:listPanel:panelWochenplanung:platzhalter_t0r0:listPanel:feldKurs101
not found on page kursa.wochenplanung.WochenplanungPage[id = 3], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]"


When I set them false or don't even set anything (default) the error doesn't
occur

Heres the code

public class Platzhalter extends Panel implements IDroppable{

...
private final RepeatingView listPanel;

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
			SpecialKeys specialKeys) {
		this.listPanel.add(draggedComponent);
		WochenplanungPage wochenplanungPage = findParent(WochenplanungPage.class);
                          // Parent Page of Platzhalter
		target.addComponent(wochenplanungPage);
	}
}


public class FeldKurs extends Panel implements IDraggable{
...

public FeldKurs(String id, Kurs kurs) {
		super(id);
		this.kurs = kurs;
		dragger = new DraggableBehavior();
		dragger.setRevert(DraggableBehavior.DragRevertMode.INVALID);
		dragger.setDistance(20);
		dragger.setOpacity(0.99);
                          dragger.setName("one");
		dragger.setWantOnDragStartNotification(true);
		dragger.setWantOnDragStopNotification(true);
		dragger.setCursor(CssCursor.MOVE);
		add(dragger);

}
...
}




-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242938.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: AW: drag and drop

Posted by DerBernd <be...@web.de>.
Thank you setRawOptions("handle: 'h2'"); works great, just want I was
searching for!!!

Bernd
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242954.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


AW: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
Look into the original jQuery docs for draggable and set any options that are not implementet now with

	setRawOptions("handle: 'h2'");

This should do the trick. If you have any suggestion for implementing a
	
	setHandle(???)

method that doesn't simple have a String parameter, please let me know.

Stefan

-----Ursprüngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:14
An: users@wicket.apache.org
Betreff: Re: drag and drop


No I have a absolutely specific question to jwicket-jquery.

I want to set the "handle" option on a draggable, to define the tag which is
used to drag the panel. 
e.g. handle: 'h2'

Unfortunately theres no setter for the handle option.


Thank you

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242910.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: drag and drop

Posted by DerBernd <be...@web.de>.
No I have a absolutely specific question to jwicket-jquery.

I want to set the "handle" option on a draggable, to define the tag which is
used to drag the panel. 
e.g. handle: 'h2'

Unfortunately theres no setter for the handle option.


Thank you

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242910.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: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
Could you provide a small testcase? I'm using d&d very intensive in a calendar app and never had any problems with this.

Stefan

-----Ursprüngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:06
An: users@wicket.apache.org
Betreff: Re: drag and drop


Thank you for your help. 
So I solved it by using repeaters "RepeatingView".
On DropEvent I add the droppedComponent to the repeating view and update the
page.
I also had to set wantOnDragStartNotification(false),
wantOnDragStopNotification(false), otherwise the dropped Component was not
found on page - don't know really why




-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242897.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: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
The default value for both is false! The code:

	private boolean onDragStartNotificationWanted = false;
	/**
	 * If set to {@code true}, the callback-Method {@link #onDragStart(AjaxRequestTarget,SpecialKeys)} 
	 * is called when the drag operation starts.
	 * @param value {@code true} or {@code false}.
	 * @return this object
	 */
	public DraggableBehavior setWantOnDragStartNotification(final boolean value) {
		onDragStartNotificationWanted = value;
		return this;
	}

So I can't see any side effect of calling

	wantOnDragStartNotification(false);

There must be some other strange situation.

Stefan

-----Ursprüngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:06
An: users@wicket.apache.org
Betreff: Re: drag and drop


Thank you for your help. 
So I solved it by using repeaters "RepeatingView".
On DropEvent I add the droppedComponent to the repeating view and update the
page.
I also had to set wantOnDragStartNotification(false),
wantOnDragStopNotification(false), otherwise the dropped Component was not
found on page - don't know really why




-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242897.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: drag and drop

Posted by DerBernd <be...@web.de>.
Thank you for your help. 
So I solved it by using repeaters "RepeatingView".
On DropEvent I add the droppedComponent to the repeating view and update the
page.
I also had to set wantOnDragStartNotification(false),
wantOnDragStopNotification(false), otherwise the dropped Component was not
found on page - don't know really why




-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242897.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: drag and drop

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Is my poor English is getting worse because of lack of sleep?


Why don't you use repeaters?

1-Let's say C1 and C2 contain repeaters
that draw their contents based on some list of "Info" classes.
2-When you move A from C1 to C2 then you just move "InfoA", info
associated twith A, from C1 to C2 and
then repaint them.

As the content is dynamically generated based on "Info" classes then
the effect will be as if you have moved A from C1 to C2  (even if you
are just rebuilding the component tree).

Best,

Ernesto

On Wed, May 26, 2010 at 1:47 PM, Ernesto Reinaldo Barreiro
<re...@gmail.com> wrote:
> Why don't you use repeaters? What about C1 and C2 contains a repeaters
> a draw contents based on some "Info". When you move A from C1 to C2
> then you just move "InfoA", info associated twith A, from C1 to C2 and
> then repaint them. As they are dynamically generated based on "Info"
> then the effect will be as if you moved A from C1 to C2  (evevn whe
> you are rebuilding the component tree).
>
> Best,
>
> Ernesto
>
>
> On Wed, May 26, 2010 at 1:36 PM, DerBernd <be...@web.de> wrote:
>>
>> Exactly, this is what I want to do!
>> Can you tell me how to solf this problem?
>> --
>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231455.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: drag and drop

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Why don't you use repeaters? What about C1 and C2 contains a repeaters
a draw contents based on some "Info". When you move A from C1 to C2
then you just move "InfoA", info associated twith A, from C1 to C2 and
then repaint them. As they are dynamically generated based on "Info"
then the effect will be as if you moved A from C1 to C2  (evevn whe
you are rebuilding the component tree).

Best,

Ernesto


On Wed, May 26, 2010 at 1:36 PM, DerBernd <be...@web.de> wrote:
>
> Exactly, this is what I want to do!
> Can you tell me how to solf this problem?
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231455.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: drag and drop

Posted by DerBernd <be...@web.de>.
Exactly, this is what I want to do!
Can you tell me how to solf this problem?
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231455.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: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
I think this is a general Wicket problem. You have component A originally attached to Container C1 an then call Container C2.add(A). This means you want to remove Component A from Parent C1 and add it to Parent C2? Is this what you are doing?

Stefan

-----Ursprüngliche Nachricht-----
Von: DerBernd [mailto:beharti@web.de] 
Gesendet: Mittwoch, 26. Mai 2010 07:51
An: users@wicket.apache.org
Betreff: Re: drag and drop


Hi,
now I tried jwicket-examples and it works quite well. But at the momemt I
stuck into a problem and I hope you can help me out.

I have a Panel "Placeholder" that implements IDroppable
And a Panel "Field" that implements IDraggable

So I have some empty Placeholders and a few Placeholders that are filled
with a Field. (held in an repeatingView of Placeholder). When I drop a Field 
over an empty Placeholder, I want to add the Field to the empty Placeholder
and remove it on its old Placeholder.

Here's the code of the placeholder.

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
			SpecialKeys specialKeys) {
Field field = (Field)draggedComponent;


listPanel.add(feld); //add it to the repeating View

PanelWochenplanung panelWochenplanung =
findParent(PanelWochenplanung.class); // get the ParentPanel
target.addComponent(panelWochenplanung); // render the ParentPanel with all
Placeholders in

}

When I drop the field (e.g. "FeldA2" from the placeholder_t2r0) on an other
placeholder I get the following error, that the dropped field was not found
on the PAGE! 


component
panelMitte:listPanel:panelWochenplanung:platzhalter_t2r0:listPanel:feldA2
not found on page kursa.wochenplanung.WochenplanungPage[id = 1], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

.... 
I hope you can get me a idea about what is wrong;)
Thank you
Bernd
http://apache-wicket.1842946.n4.nabble.com/file/n2231075/WicketMessage.txt
WicketMessage.txt 
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231075.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: drag and drop

Posted by DerBernd <be...@web.de>.
Hi,
now I tried jwicket-examples and it works quite well. But at the momemt I
stuck into a problem and I hope you can help me out.

I have a Panel "Placeholder" that implements IDroppable
And a Panel "Field" that implements IDraggable

So I have some empty Placeholders and a few Placeholders that are filled
with a Field. (held in an repeatingView of Placeholder). When I drop a Field 
over an empty Placeholder, I want to add the Field to the empty Placeholder
and remove it on its old Placeholder.

Here's the code of the placeholder.

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
			SpecialKeys specialKeys) {
Field field = (Field)draggedComponent;


listPanel.add(feld); //add it to the repeating View

PanelWochenplanung panelWochenplanung =
findParent(PanelWochenplanung.class); // get the ParentPanel
target.addComponent(panelWochenplanung); // render the ParentPanel with all
Placeholders in

}

When I drop the field (e.g. "FeldA2" from the placeholder_t2r0) on an other
placeholder I get the following error, that the dropped field was not found
on the PAGE! 


component
panelMitte:listPanel:panelWochenplanung:platzhalter_t2r0:listPanel:feldA2
not found on page kursa.wochenplanung.WochenplanungPage[id = 1], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

.... 
I hope you can get me a idea about what is wrong;)
Thank you
Bernd
http://apache-wicket.1842946.n4.nabble.com/file/n2231075/WicketMessage.txt
WicketMessage.txt 
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231075.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: drag and drop

Posted by DerBernd <be...@web.de>.
Hi,
first of all I have to thank you for your many answers .. and your following
discussion:-)
I will start with the jwicket-examples and see how it works.

Thanks a lot
Bernd

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2224344.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: drag and drop

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Stefan has a patch. He posted his patch on the issue I created... See
my previous e-mail

Ernesto


On Wed, May 19, 2010 at 1:22 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> If you have a patch, should be easy to get it accepted to jquery, no?
>
> 2010/5/19 Ernesto Reinaldo Barreiro <re...@gmail.com>:
>> Hi Istvan,
>>
>> Don't take me wrong but: can you "confirm" that any other third party
>> plugins you want to integrate with your application will work with the
>> patched version of jquery? I know Stefan  has tested a lot his fix but
>> you cannot be 100% sure that this fix will not brake other untested
>> functionality (that was built against the original jquery). I want to
>> make clear that I'm NOT trying to imply that there is something wrong
>> with Stefan's fix, it's just that I do prefer NOT to use jquery D&D
>> till they officially fix it: which does not seem to be any time soon
>> if one judge their reaction to the issue I have created at their forum
>> and the many times  the issue has been reported.
>>
>> Best,
>>
>> Ernesto
>>
>> On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa <st...@yahoo.com> wrote:
>>> I can confirm, that it _IS_ patched, drag&drop works on IE.
>>>
>>> Istvan
>>>
>>>> ... think Stefan has patched the jquery.js file to get it
>>>> working for his
>>>> jWicket project.
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>

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


Re: drag and drop

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
If you have a patch, should be easy to get it accepted to jquery, no?

2010/5/19 Ernesto Reinaldo Barreiro <re...@gmail.com>:
> Hi Istvan,
>
> Don't take me wrong but: can you "confirm" that any other third party
> plugins you want to integrate with your application will work with the
> patched version of jquery? I know Stefan  has tested a lot his fix but
> you cannot be 100% sure that this fix will not brake other untested
> functionality (that was built against the original jquery). I want to
> make clear that I'm NOT trying to imply that there is something wrong
> with Stefan's fix, it's just that I do prefer NOT to use jquery D&D
> till they officially fix it: which does not seem to be any time soon
> if one judge their reaction to the issue I have created at their forum
> and the many times  the issue has been reported.
>
> Best,
>
> Ernesto
>
> On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa <st...@yahoo.com> wrote:
>> I can confirm, that it _IS_ patched, drag&drop works on IE.
>>
>> Istvan
>>
>>> ... think Stefan has patched the jquery.js file to get it
>>> working for his
>>> jWicket project.
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: drag and drop

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

Don't take me wrong but: can you "confirm" that any other third party
plugins you want to integrate with your application will work with the
patched version of jquery? I know Stefan  has tested a lot his fix but
you cannot be 100% sure that this fix will not brake other untested
functionality (that was built against the original jquery). I want to
make clear that I'm NOT trying to imply that there is something wrong
with Stefan's fix, it's just that I do prefer NOT to use jquery D&D
till they officially fix it: which does not seem to be any time soon
if one judge their reaction to the issue I have created at their forum
and the many times  the issue has been reported.

Best,

Ernesto

On Wed, May 19, 2010 at 12:32 PM, Stefan Jozsa <st...@yahoo.com> wrote:
> I can confirm, that it _IS_ patched, drag&drop works on IE.
>
> Istvan
>
>> ... think Stefan has patched the jquery.js file to get it
>> working for his
>> jWicket project.
>
>
>
>
>
> ---------------------------------------------------------------------
> 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


AW: drag and drop

Posted by Stefan Lindner <li...@visionet.de>.
Ernesto Reinaldo wrote

>2-jQuery D&D is also broken for IE after AJAX replacements (Stefan
>Lindner will surely confirm this). You can find this explained in
>others threads on this list and on jQuery forum. It seems the same
>issue has been reported over and over and they do not fix it:-(. I
>think Stefan has patched the jquery.js file to get it working for his
>jWicket project. This problem is present on WiQuery (as their jquery
>hasn't been patched: which IMHO is the right thing to do).


That's correct. The bug is fixed by a patch for jquery in jWicket. No problems with broken AjaxBehaviors in IE. This point (D&D or other effects stop to work after an Ajax update) is always worth a closer look if you decide to use any javascript framework. I had the same problem with an early Wicket-Dojo package. And I noticed similar problems with orther functioins than D&D in some javasript frameworks. No one trys to re-invent the wheel. Many frameworks use code fragments from other frameworks and general problems spread all over these frameworks.

Stefan

-----Urspr�ngliche Nachricht-----
Von: Ernesto Reinaldo Barreiro [mailto:reiern70@gmail.com]
Gesendet: Mi 19.05.2010 09:54
An: users@wicket.apache.org
Betreff: Re: drag and drop
 
Hi Bernd,

I would use YUI or give it a try to [1] as:

1-scriptacoulous has the problem (for IE) mentioned on this thread
(disclaimer: I don't know if it has been fixed after this tread was
created and taht was long ago)/
2-jQuery D&D is also broken for IE after AJAX replacements (Stefan
Lindner will surely confirm this). You can find this explained in
others threads on this list and on jQuery forum. It seems the same
issue has been reported over and over and they do not fix it:-(. I
think Stefan has patched the jquery.js file to get it working for his
jWicket project. This problem is present on WiQuery (as their jquery
hasn't been patched: which IMHO is the right thing to do).
4- I haven't tried [1] but I remember seen a working demo of it.
5-I haven't tried DOJO.

As for YUI I had to do some tricks to get it working  (again for IE)
in combination with AYAX replacements (I used it for a grid whose
columns could be reordered via D&D).

References,

1-http://code.google.com/p/wicket-dnd/

On Wed, May 19, 2010 at 9:26 AM, DerBernd <be...@web.de> wrote:
>
> Hi,
> I'm working on a wicket-project (1.4) and need to implement some drag&drop
> features. Could you give me some current links of tutorials to start with.
> I also don't know which "technology" to choose: YUI, DOJO, scriptaculous ???
>
> Thank you for your help
> Bernd
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2222375.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: drag and drop

Posted by Stefan Jozsa <st...@yahoo.com>.
I can confirm, that it _IS_ patched, drag&drop works on IE.

Istvan

> ... think Stefan has patched the jquery.js file to get it
> working for his
> jWicket project.



      

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


Re: drag and drop

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

I would use YUI or give it a try to [1] as:

1-scriptacoulous has the problem (for IE) mentioned on this thread
(disclaimer: I don't know if it has been fixed after this tread was
created and taht was long ago)/
2-jQuery D&D is also broken for IE after AJAX replacements (Stefan
Lindner will surely confirm this). You can find this explained in
others threads on this list and on jQuery forum. It seems the same
issue has been reported over and over and they do not fix it:-(. I
think Stefan has patched the jquery.js file to get it working for his
jWicket project. This problem is present on WiQuery (as their jquery
hasn't been patched: which IMHO is the right thing to do).
4- I haven't tried [1] but I remember seen a working demo of it.
5-I haven't tried DOJO.

As for YUI I had to do some tricks to get it working  (again for IE)
in combination with AYAX replacements (I used it for a grid whose
columns could be reordered via D&D).

References,

1-http://code.google.com/p/wicket-dnd/

On Wed, May 19, 2010 at 9:26 AM, DerBernd <be...@web.de> wrote:
>
> Hi,
> I'm working on a wicket-project (1.4) and need to implement some drag&drop
> features. Could you give me some current links of tutorials to start with.
> I also don't know which "technology" to choose: YUI, DOJO, scriptaculous ???
>
> Thank you for your help
> Bernd
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2222375.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: drag and drop

Posted by Stefan Jozsa <st...@yahoo.com>.
I used wicketstuff-jwicket with SUCCESS.
It is based on jQuey, is a non intrusive,
extremly easy to use library.

Istvan

--- On Wed, 5/19/10, DerBernd <be...@web.de> wrote:
> From: DerBernd <be...@web.de>
> Subject: Re: drag and drop
> To: users@wicket.apache.org
> Date: Wednesday, May 19, 2010, 10:26 AM
> Hi,
> I'm working on a wicket-project (1.4) and need to implement
> some drag&drop
> features. Could you give me some current links of tutorials
> to start with. 
> I also don't know which "technology" to choose: YUI, DOJO,
> scriptaculous ???
> 
> Thank you for your help
> Bernd
> 
> -- 
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2222375.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: drag and drop

Posted by DerBernd <be...@web.de>.
Hi,
I'm working on a wicket-project (1.4) and need to implement some drag&drop
features. Could you give me some current links of tutorials to start with. 
I also don't know which "technology" to choose: YUI, DOJO, scriptaculous ???

Thank you for your help
Bernd

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2222375.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: drag and drop

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
implements Serializable

2009/4/1 Daniel Ferreira Castro <df...@gmail.com>:
> I was reading the drag and drop thread, started on March 19th and trying to
> use the *yui *ajax implementation as the yui example suggests.But I am
> recieving an exception like that
>
> It is wierd because I declared the class field TargetSlot as transient.  No
> matter if I declare it as transient or not, the result is the same.
>
> Did anyone have any similar bug?  how to solve it?
>
> ERROR - Objects                    - Error serializing object class
> com.jasp.ecommfwk.pages.common.layout.Index [object=[Page class =
> com.jasp.ecommfwk.pages.common.layout.Index, id = 0, version = 0]]
> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
> Unable to serialize class:
> org.wicketstuff.yui.markup.html.dragdrop.TargetSlot
> Field hierarchy is:
>  0 [class=com.jasp.ecommfwk.pages.common.layout.Index, path=0]
>    private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=[Ljava.lang.Object;]
>      private org.apache.wicket.markup.html.link.PopupSettings
> org.apache.wicket.markup.html.link.Link.popupSettings[2]
> [class=org.apache.wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel,
> path=0:tabs]
>        private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=[Ljava.lang.Object;]
>          private org.apache.wicket.markup.html.link.PopupSettings
> org.apache.wicket.markup.html.link.Link.popupSettings[1]
> [class=com.jasp.ecommfwk.pages.common.layout.panels.configuracao.ConfiguracaoPanel,
> path=0:tabs:panel]
>            private java.lang.Object
> org.apache.wicket.MarkupContainer.children
> [class=org.apache.wicket.extensions.markup.html.tabs.TabbedPanel,
> path=0:tabs:panel:Configuracoes]
>              private java.lang.Object
> org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
>                private org.apache.wicket.markup.html.link.PopupSettings
> org.apache.wicket.markup.html.link.Link.popupSettings[1]
> [class=com.jasp.ecommfwk.pages.vitrine.ConfiguracaoVitrinePanel,
> path=0:tabs:panel:Configuracoes:panel]
>                  private java.lang.Object
> org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
>                    private final java.lang.Object[]
> org.apache.wicket.model.StringResourceModel.parameters[0][2]
> [class=org.wicketstuff.yui.markup.html.dragdrop.DragDropGroup,
> path=0:tabs:panel:Configuracoes:panel:dragDrop]
>                      private java.lang.Object
> org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
>                        private java.lang.Object
> org.apache.wicket.markup.html.form.FormComponent.validators[2]
> [class=org.wicketstuff.yui.markup.html.dragdrop.DragDropGroup$3,
> path=0:tabs:panel:Configuracoes:panel:dragDrop:targetListView]
>                          java.lang.Object org.apache.wicket.Component.data
> [class=org.apache.wicket.model.util.ListModel]
>                            private java.lang.Object
> org.apache.wicket.model.util.GenericBaseModel.object
> [class=java.util.ArrayList]
>                              private java.lang.Object
> org.apache.wicket.model.util.GenericBaseModel.object[write:1]
> [class=org.wicketstuff.yui.markup.html.dragdrop.TargetSlot] <----- field
> that is not serializable
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:349)
> at
> org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
> at
> org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:497)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1116)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.ArrayList.writeObject(ArrayList.java:570)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:504)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
> at
> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
> at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
> at
> org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:687)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
> at
> org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:127)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
> at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1097)
> at
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:199)
> at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:814)
> at
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:327)
> at org.apache.wicket.Session.requestDetached(Session.java:1398)
> at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1118)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1396)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
> at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:295)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
> at
> org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
> at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> Caused by: java.io.NotSerializableException:
> org.wicketstuff.yui.markup.html.dragdrop.TargetSlot
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.ArrayList.writeObject(ArrayList.java:570)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at
> java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
> at org.apache.wicket.Component.writeObject(Component.java:4395)
> at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at
> org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:119)
> ... 26 more
> INFO  - xServerAndClientTimeFilter - 609ms server time taken for request
> ?wicket:interface=:0:tabs:tabs-container:tabs:2:link::IBehaviorListener:0:&random=0.24121064195549574
> response size: 18270
>
> On Fri, Mar 20, 2009 at 3:16 AM, Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
>> Yep! I abandoned it because I hat to remove all Droppables associated with
>> my component before any AJAX round trip  that updated the component. This
>> was a nightmare because that component could be embedded into others
>> components that would refresh using AJAX, so the whole setting was very
>> fragile... So, I switched to YUI and the problem was gone.
>>
>> Ernesto
>>
>> On Thu, Mar 19, 2009 at 10:19 PM, Stefan Lindner <lindner@visionet.de
>> >wrote:
>>
>> > It is still there. I had massive problems with updating dropable items in
>> a
>> > table with ajax.
>> >
>> > -----Ursprüngliche Nachricht-----
>> > Von: Ernesto Reinaldo Barreiro [mailto:reiern70@gmail.com]
>> > Gesendet: Donnerstag, 19. März 2009 21:31
>> > An: users@wicket.apache.org
>> > Betreff: Re: drag and drop
>> >
>> > I would use YUI drag and drop instead of scriptaculous. I was using
>> > scriptaculous for that purpose, I just implemented a table with draggable
>> > columns, but I had some issues with AJAX updates on IE: after first page
>> > reload draggables stoped to work because dropables had to be
>> > removed/recreated. There was a thread on this list, long time ago,
>> > explaining this issue. Meanwhile I don't know if this is still an issue
>> > with
>> > newer version of scriptacoplus....
>> >
>> > Think it is stil there
>> >
>> > http://wiki.github.com/madrobby/scriptaculous/droppables
>> >
>> >
>> > See Removing DroppablesBut maybe this is not an issue for your use case.
>> >
>> > Switching to YUI made acomplishing the task a lot easier. There is
>> already
>> > some code for YUI drag-drop at YUI integration.
>> >
>> > Best,
>> >
>> > Ernesto
>> >
>> > On Thu, Mar 19, 2009 at 9:24 AM, tbt <na...@yahoo.com> wrote:
>> >
>> > >
>> > > Hi
>> > >
>> > > I am a newbie to wicket and I want to create a page where images can be
>> > > dragged and dropped. I had a look at wicketstuff-scriptaculous and
>> > > downloaded the jar file but it is not compatible with wicket 1.3.2. Can
>> > > someone provide me the link so that I can download the jar file
>> straight
>> > > away which is compatible with the wicket version that I am using. Any
>> > > suggestions as to how this should be implemented using wicket is also
>> > > welcome.  eg: wicket-dojo, wicket-jquery, wicket-prototype etc
>> > >
>> > > Thanks
>> > > --
>> > > View this message in context:
>> > > http://www.nabble.com/drag-and-drop-tp22595081p22595081.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
>> >
>> >
>>
>
>
>
> --
> "Two rules to succeed in life:
> 1 - don´t tell people everything you know."
> --------
> We shall go on to the end.
> We shall fight in France
> We shall fightover the seas and oceans.
> We shall fight with growing confidence and growing strength in the air.
> We shall defend our island whatever the cost may be
> We shall fight on beaches, we shall fight on the landing grounds,
> We shall fight in the fields and in the streets,
> We shall fight on the hills.
> We shall never surrender.
> Winston Churchill
>

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