You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Decebal Suiu <de...@asf.ro> on 2012/08/01 15:46:28 UTC
wicket-dnd strange situation
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:
in the big application
and
in the small application
My html head looks (the strip version):
<link rel="stylesheet" type="text/css"
href="./wicket/resource/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal-ver-1338386033000.css">
<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
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918.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: wicket-dnd strange situation
Posted by Decebal Suiu <de...@asf.ro>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket-dnd strange situation
Posted by Sven Meier <sv...@meiers.net>.
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: 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: wicket-dnd strange situation
Posted by Decebal Suiu <de...@asf.ro>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket-dnd strange situation
Posted by Sven Meier <sv...@meiers.net>.
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: 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: wicket-dnd strange situation
Posted by Marieke Vandamme <ma...@tvh.be>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket-dnd strange situation
Posted by Decebal Suiu <de...@asf.ro>.
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
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4650950.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: wicket-dnd strange situation
Posted by Decebal Suiu <de...@asf.ro>.
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
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4651220.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: wicket-dnd strange situation
Posted by Hielke Hoeve <Hi...@topicus.nl>.
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:decebal.suiu@asf.ro]
Sent: donderdag 2 augustus 2012 12:18
To: users@wicket.apache.org
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: 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: wicket-dnd strange situation
Posted by Decebal Suiu <de...@asf.ro>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket-dnd strange situation
Posted by julien roche <ro...@gmail.com>.
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" <de...@asf.ro> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: wicket-dnd strange situation
Posted by Decebal Suiu <de...@asf.ro>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org