|
Hi
I use wicket-dnd (0.5.0) with wicket 1.5.5. Initial I developed a small application with these libraries but now I want to integrate the code in a big application (copy/paste with some rename on packages). In the big application I retrieves "Uncaught TypeError: Object #<HTMLDocument> has no method 'ready'" in firebug. In the generated html I see some differences: <script type="text/javascript"> /*<![CDATA[*/ $(document).ready(function(event){new wicketdnd.DropTarget('id11','pivot?13-2.IBehaviorListener.1-areas-area-1',['MOVE'],[''],'undefined','undefined','div.value-container','undefined','div.value-container');}); /*]]>*/ </script>in the big application and <script type="text/javascript"> /*<![CDATA[*/ Wicket.Event.add(window, "domready", function(event) { new wicketdnd.DropTarget('id11','?0-1.IBehaviorListener.2-areas-area-1',['MOVE'],[''],'div.value-container','undefined','undefined','undefined','undefined');;}); /*]]>*/ </script>in the small application My html head looks (the strip version): <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><script type="text/javascript" src="../js/bootstrap.js"></script><script type="text/javascript" src="./wicket/resource/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal-ver-1338386033000.js"></script><link rel="stylesheet" type="text/css" href="./wicket/resource/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal-ver-1338386033000.css"> <script type="text/javascript" src="./wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-1338385910000.js"></script><script type="text/javascript" src="./wicket/resource/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax-ver-1338385910000.js"></script><script type="text/javascript" src="./wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-ver-1338385910000.js"></script><script type="text/javascript" src="./wicket/resource/org.wicketstuff.jslibraries.JSReference/js/prototype-1.7-ver-1315885779000.js"></script><script type="text/javascript" src="./wicket/resource/wicketdnd.Transfer/wicket-dnd-ver-1316016245000.js"></script><link rel="stylesheet" type="text/css" href="./wicket/resource/wicketdnd.theme.WebTheme/web/theme-ver-1316016245000.css"> Can somebody explain me why these differences happen? Thanks, Decebal |
|
Wicket.Event.add(window, "domready", function(event) { new wicketdnd.DropTarget(...) }); // works
$(document).ready(function(event){new wicketdnd.DropTarget(...)}); // error (probably jquery not found or a conflict between jquery and prototype) |
|
Are you using wiquery?
I remember an incompatibility between prototype and jquery in that case. Sven On 08/01/2012 03:58 PM, Decebal Suiu wrote: > Wicket.Event.add(window, "domready", function(event) { new > wicketdnd.DropTarget(...) }); // works > > $(document).ready(function(event){new wicketdnd.DropTarget(...)}); // error > (probably jquery not found or a conflict between jquery and prototype) > > > > > -- > View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4650920.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Hello Sven
First, I want to say thanks for your contribution to wicket (for wicket-tree and wicket-dnd in special). Yes, I use wiquery :) I read http://code.google.com/p/wicket-dnd/issues/detail?id=13&can=1. Is there anyone from wiquery that can explains us why wiquery doesn't works with wicket-dnd? And a question from Sven: it is possible to use jquery instead prototype to implement wicket-dnd (I think that jquery is "embedded" in wicket core from version 6)? Thanks, Decebal |
|
In reply to this post by Decebal Suiu
For Wicket 6 I'll port wicket-dnd to jquery.
Sven Decebal Suiu <[hidden email]> schrieb: >Hello Sven > >First, I want to say thanks for your contribution to wicket (for wicket-tree >and wicket-dnd in special). > >Yes, I use wiquery :) I read >http://code.google.com/p/wicket-dnd/issues/detail?id=13&can=1. >Is there anyone from wiquery that can explains us why wiquery doesn't works >with wicket-dnd? > >And a question from Sven: it is possible to use jquery instead prototype to >implement wicket-dnd (I think that jquery is "embedded" in wicket core from >version 6)? > >Thanks, >Decebal > > > > >-- >View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4650945.html >Sent from the Users forum mailing list archive at Nabble.com. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [hidden email] >For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Nice. I see a beautiful future :) wicket-dnd integrated with wicket tree and of course wicket-dnd part of wicket core.
Now, I'm waiting a clarification from a member of wiquery. Thanks again, Decebal |
|
hi
Prototype uses $ like jQuery. That can create conflict (your error message indicates that the jquery method "ready" is not available. probably vecause Prototype was loaded after jquery and so override $.). jquery offers a noconflict mode, but I don't remember if we have integrate it to wiquery (like an option). in all cases it is not a good idea to mix many javascript core apis. so use jquery only or prototype, but not the twice in the same time. regards julien roche Le 2 août 2012 09:46, "Decebal Suiu" <[hidden email]> a écrit : > Nice. I see a beautiful future :) wicket-dnd integrated with wicket tree > and > of course wicket-dnd part of wicket core. > Now, I'm waiting a clarification from a member of wiquery. > > Thanks again, > Decebal > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4650947.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > |
|
Hi Julien
Thanks for the fast response. Sven says that for wicket 6, wicket-dnd will be port to jquery but now I see that I have only one option: to give up one library (wiquery or wicket-dnd). Both libraries are very good and I want to keep both. Is it a chance to activate jquery no conflict mode in wiquery? Other advice is welcome. Thanks Decebal |
|
In reply to this post by julien roche AKA indiana_jules
Another technical question is who (I suppose wiquery) and why change
Wicket.Event.add(window, "domready", function(event) { new wicketdnd.DropTarget(...) });
in
$(document).ready(function(event){new wicketdnd.DropTarget(...)});
Best regards,
Decebal
|
|
Hi Decebal,
Sorry for the late response but I was on holiday. The 2 code snippets below do exactly the same. They look different but they both perform "new wicketdnd.DropTarget(...)" when the dom is loaded and ready. Can you provide a better/bigger example? I checked your other posts and saw a link to a bug report. In this you say you use WiQuery for the modalwindows but WiQuery has no support for them as Wicket already provides this. Regards, Hielke -----Original Message----- From: Decebal Suiu [mailto:[hidden email]] Sent: donderdag 2 augustus 2012 12:18 To: [hidden email] Subject: Re: wicket-dnd strange situation Another technical question is who (I suppose wiquery) and why change Wicket.Event.add(window, "domready", function(event) { new wicketdnd.DropTarget(...) }); in $(document).ready(function(event){new wicketdnd.DropTarget(...)}); Best regards, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4650951.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Hi Hielke
First, I want to say thanks for wiquery. I integrated wiquery in a big project with success and we are happy with them. I know that the 2 code snippets do exactly the same. The first uses the wicket mechanism and the second uses the jquery mechanism. I read at http://code.google.com/p/wicket-dnd/issues/detail?id=13#c1 that "WiQueryCoreInitializer(hooked up via WiQueryInitializer) installs its custom WiQueryDecoratingHeaderResponse" and I suppose that WiQueryDecoratingHeaderResponse translate the first code snippet in the second. In my case the problem is "$" jquery variable instead "$.noConflict()" (we need to use another JavaScript library - prototype from wicekt-dnd - alongside jQuery). Probably a jquery layer in the wicket core will help more the wicket developers that consume jquery (core, ui) and the projects that integrate wicket with jquery. In this layer I see a standard mode to add jquery.js, some behaviors that add jquery core functions in wicket and also different kinds of helpers (options) for function parameters (boolean, string, ....) Best regards, Decebal |
|
In reply to this post by Sven Meier
Dear Sven,
Is wicket-dnd already changed for wicket 6 ? I can't find the sources for this.. Thanks! Kind Regards, Marieke Vandamme |
|
That's still on my TODO list.
Sven On 09/19/2012 12:56 PM, Marieke Vandamme wrote: > Dear Sven, > > Is wicket-dnd already changed for wicket 6 ? > I can't find the sources for this.. > > Thanks! Kind Regards, Marieke Vandamme > > > > -- > View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4652141.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
| Powered by Nabble | Edit this page |
