Re: Wicket 6.23 Jquery reference settings
It could either be that its just missing or that wicket would not be compatible with 2.x og jquery... On Thu, Jan 19, 2017 at 10:11 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Yeah I know, just wanted to know why there's no nice setting in > JQueryResourceReference > for the 2.x branch... > > On Thu, Jan 19, 2017 at 9:31 AM, Martin Grigorov> wrote: > >> See org.apache.wicket.resource.DynamicJQueryResourceReference >> >> But you can always roll your own ResourceReference that loads any specific >> version you need. >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Thu, Jan 19, 2017 at 9:20 AM, nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >> > Hi from what I can see wicket 6.23 ships with both jquery 1.x and 2.x, >> how >> > can I tell wicket to use the 2.x version? >> > >> > Looking in JQueryResourceReference it only has version 1.x... >> > >> > -- >> > Best regards / Med venlig hilsen >> > Nino Martinez >> > >> > > > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket 6.23 Jquery reference settings
Yeah I know, just wanted to know why there's no nice setting in JQueryResourceReference for the 2.x branch... On Thu, Jan 19, 2017 at 9:31 AM, Martin Grigorovwrote: > See org.apache.wicket.resource.DynamicJQueryResourceReference > > But you can always roll your own ResourceReference that loads any specific > version you need. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, Jan 19, 2017 at 9:20 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hi from what I can see wicket 6.23 ships with both jquery 1.x and 2.x, > how > > can I tell wicket to use the 2.x version? > > > > Looking in JQueryResourceReference it only has version 1.x... > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket 6.23 Jquery reference settings
See org.apache.wicket.resource.DynamicJQueryResourceReference But you can always roll your own ResourceReference that loads any specific version you need. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jan 19, 2017 at 9:20 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi from what I can see wicket 6.23 ships with both jquery 1.x and 2.x, how > can I tell wicket to use the 2.x version? > > Looking in JQueryResourceReference it only has version 1.x... > > -- > Best regards / Med venlig hilsen > Nino Martinez >
Re: Wicket Atmosphere jQuery noConflict
Fixed with https://issues.apache.org/jira/browse/WICKET-5917 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jun 3, 2015 at 5:06 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Wed, Jun 3, 2015 at 4:32 PM, mashleyttu mash...@gmail.com wrote: Our application uses jQuery.noConflict changing all references from $ to $j. We are trying to integrate Wicket Atmosphere into our application, however, are running into an issue where it is rendering a $ in an OnDomReadyHeaderItem.forScript. This is of course causing javascript errors. We have tracked it down to the renderHead method of AtmosphereBehavior. The $ is hard coded in the javascript string. Does anyone know if it is possible to extend AtmosphereBehavior and have Wicket Atmosphere use our custom version? Nope See https://github.com/apache/wicket/blob/2f0d08d4179af272e1670084ec2e36f58628ff13/wicket-experimental/wicket-atmosphere/src/main/java/org/apache/wicket/atmosphere/AtmosphereEventSubscriptionCollector.java#L117 Or it is possible to extend OnDomReadyHeaderItem which would do a replace on $( with $j( and have wicket use that globally? There is a way! You can register custom IHeaderResponseDecorator that will re-write the content of OnDomReadyHeaderItem when its script contains $(. See http://wicketinaction.com/2012/07/wicket-6-resource-management/ https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/3e6952567976302ed0698de1b52508fc7747e001/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/WicketApplication.java#L139 https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/3e6952567976302ed0698de1b52508fc7747e001/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/RenderJavaScriptToFooterHeaderResponseDecorator.java#L81 https://github.com/apache/wicket/blob/2f0d08d4179af272e1670084ec2e36f58628ff13/wicket-core/src/main/java/org/apache/wicket/markup/head/filter/FilteringHeaderResponse.java#L172 Here you have to do: @Override public void render(HeaderItem item) { if (item instanceof ondomreadyitem ondomreadyitem.getScript().contains($()) {super.render(OnDomReadyHeaderItem.forScript(item.getScript().replaceAll($(, jQuery()))} Any thoughts on how to resolve this issue? Using Wicket Atmosphere .18 and Wicket 6.11 currently. Please file a ticket so this is fixed for 6.20. Thanks! Thanks, Matt -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-jQuery-noConflict-tp4671046.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Atmosphere jQuery noConflict
Hi, On Wed, Jun 3, 2015 at 4:32 PM, mashleyttu mash...@gmail.com wrote: Our application uses jQuery.noConflict changing all references from $ to $j. We are trying to integrate Wicket Atmosphere into our application, however, are running into an issue where it is rendering a $ in an OnDomReadyHeaderItem.forScript. This is of course causing javascript errors. We have tracked it down to the renderHead method of AtmosphereBehavior. The $ is hard coded in the javascript string. Does anyone know if it is possible to extend AtmosphereBehavior and have Wicket Atmosphere use our custom version? Nope See https://github.com/apache/wicket/blob/2f0d08d4179af272e1670084ec2e36f58628ff13/wicket-experimental/wicket-atmosphere/src/main/java/org/apache/wicket/atmosphere/AtmosphereEventSubscriptionCollector.java#L117 Or it is possible to extend OnDomReadyHeaderItem which would do a replace on $( with $j( and have wicket use that globally? There is a way! You can register custom IHeaderResponseDecorator that will re-write the content of OnDomReadyHeaderItem when its script contains $(. See http://wicketinaction.com/2012/07/wicket-6-resource-management/ https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/3e6952567976302ed0698de1b52508fc7747e001/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/WicketApplication.java#L139 https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/3e6952567976302ed0698de1b52508fc7747e001/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/RenderJavaScriptToFooterHeaderResponseDecorator.java#L81 https://github.com/apache/wicket/blob/2f0d08d4179af272e1670084ec2e36f58628ff13/wicket-core/src/main/java/org/apache/wicket/markup/head/filter/FilteringHeaderResponse.java#L172 Here you have to do: @Override public void render(HeaderItem item) { if (item instanceof ondomreadyitem ondomreadyitem.getScript().contains($()) {super.render(OnDomReadyHeaderItem.forScript(item.getScript().replaceAll($(, jQuery()))} Any thoughts on how to resolve this issue? Using Wicket Atmosphere .18 and Wicket 6.11 currently. Please file a ticket so this is fixed for 6.20. Thanks! Thanks, Matt -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-jQuery-noConflict-tp4671046.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Atmosphere jQuery noConflict
Sir, you are a gentleman and a scholar for your quick reply with links to excellent examples. Thanks so much. You wicket folks think of a solutions for everything. Love the architecture! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-jQuery-noConflict-tp4671046p4671052.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket and jQuery UI
Dear all, Wiquery offers a wide range of Behaviors in order to make components Draggable. There are a few Components which demand a certain type of tag to be used. We have experienced that the more flexible you make your API the more dumb questions people ask and the less they use it. Apparently they expect a magic library which can be included and read peoples minds :) Posts like are imo very constructive and do keep us sharp. Thanks for that. Hielke From: Sebastien [seb...@gmail.com] Sent: 02 October 2012 19:28 To: users@wicket.apache.org Subject: Re: Wicket and jQuery UI Hi, I will provide an answer for wicket-jquery-ui and let people/users from wiQuery answer about this last. wicket-jquery-ui has several goals: the first one is to provide the jQuery UI widget library as Wicket components, for both wicket 1.5.x and wicket 6.x. The work has mainly been focused to provide Wicket jQuery UI components having (I hope) the same philosophy/logic as Wicket's built-in ones, so the user deals with these components the same manner he usually deals with the Wicket ones. This is the most important point IMO. In addition, it provides - as Sebastien said - pure Behavior to allow users to use it either directly or embed it in other components. The advantage of using a Component versus a Behavior is that the Component can offers some events handling (ajax, naturally). To answer Pointbreak, a Draggable - for instance - is a Component for this specific reason, to be able to broadcast events (using latest Wicket event mechanism) either to itself (most common case for components) or to a Droppable object. It would have been really much difficult to understand the event logic if only a Behavior would have been supplied. For the Accordion, I did not provide the associated Behavior because it straightforward to add it (as many others, but it is probably not clear enough): add(new JQueryBehavior(#myId, accordion)); I am currently working on the accordion this week to provides its specific Behavior and event handling... The second goal is that the 'core' is also designed to integrate other plugins, from simple Behaviors to complex Components. For instance, the project provides an integration of the Calendar (from FullCalendar jQuery plugin) and an integration of several components of the Kendo-UI widget library. In the future, I think it will also provide an integration of a really good charting library (but it's a secret! ;). I began to write the tutorial series on how-to implement plugins but it is unfortunately not yet finished. wicket-jquery-ui is fairly new - the first version has been released about 6 months ago and has already been downloaded several hundred of time (I do not have latest maven stats), the demo site recorded more than 2 000 visits these last 30 days (11 700 page views). No just to give you some numbers, just to say that it seems to be really in use; I use it myself - and my colleges - at work on some big projects. And the number of opened issues (very low) tends me to say that the API seems to be stable/reliable. (or nobody use it in fact ;)) I do not have a lot a feedback about who - and how - the API is used. However, I hope these few lines will help you to answer a part of your question. Best regards, Sebastien. On Tue, Oct 2, 2012 at 6:44 PM, Pointbreak pointbreak+wicketst...@ml1.netwrote: But why not for tabs, accordion, slider, and other jquery components? That gives you much more flexibility in separating what a component logically does (e.g. render various sections of data, widgets, etc.), from how it is shown and interacted with in the browser (view as tabs, steps in a widget, accordion, just plain sections, ...). In jquery-ui itself you also add it as a behavior to a DOM element. So why not offer that flexibility in the Wicket integration? Idem ditto for things like draggable, droppable, etc. Why not offer the possibility to make any existing wicket panel/component a draggable by having a DraggableBehavior? In wicket-jquery-ui you need to subclass a Draggable panel, which is obviously not possible with already existing components/panels. Just to clarify: this is my very personal opinion on how a jquery integration should be designed (and actually how I've done it for many projects so far). That's obviously very subjective. It looks like an impressive library nonetheless! On Tue, Oct 2, 2012, at 15:30, Sébastien Gautrin wrote: Hi Pointbreak, At least for wicket-jquery-ui, it offers also pure behaviours integration for jquery extensions that are pure behaviours (such as Droppable). I think wiQuery does as well. For ease of defining such things for you own component, it is the main goal of wicket-jquery-ui; take a look at the three tutorials Sebastien made (sebfz1) for wicket-jquery-ui: http://code.google.com/p/wicket-jquery-ui/w/list?q=label:How-To (note: Sebastien is the author of wicket-jquery-ui
Re: Wicket and jQuery UI
Hi, On Tue, Oct 2, 2012 at 9:28 AM, ronny.v...@consult.nordea.com wrote: Hi Wicket I have been looking at a) wiQuery and b) wicket-jquery-ui What API to use when doing a bridge between Wicket and jQuery UI? What exactly do you need ? The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior. Recommendations and experience would be very much welcomed. Thanks in advance! Best regards/Med venlig hilsen Ronny Voss Nordea Bank Danmark A/S Online Securities Processing Solutions Strandgade 3 DK-1401 København K Mobile: +45 26711952 E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket and jQuery UI
Hi I was not thinking about the base, ie AbstractDefaultAjaxBehavior. I was thinking about using one off the API - several components - could be accordion? could be some effects etc. So I was thinking about who has tried out both API's - has some experiences and suggest this API because bla bla. Hope I explain myself fully here. - Ronny -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: 02 October 2012 08:52 To: users@wicket.apache.org Subject: Re: Wicket and jQuery UI Hi, On Tue, Oct 2, 2012 at 9:28 AM, ronny.v...@consult.nordea.com wrote: Hi Wicket I have been looking at a) wiQuery and b) wicket-jquery-ui What API to use when doing a bridge between Wicket and jQuery UI? What exactly do you need ? The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior. Recommendations and experience would be very much welcomed. Thanks in advance! Best regards/Med venlig hilsen Ronny Voss Nordea Bank Danmark A/S Online Securities Processing Solutions Strandgade 3 DK-1401 København K Mobile: +45 26711952 E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and jQuery UI
It's a very long time ago that I looked at the API's, so it's likely things have changed since that time. But the problem I had with both products is that they are mostly component based API's (meaning they offer an Accordion component, Autocomplete component, etc.). Imho, a much more flexible approach for JQuery integration is to offer all jquery-ui functionality as behaviors. That way existing components (both from core, other libraries, or your own code) can more easily be augmented with jqeury-ui functionality. And since it's easy enough to do it yourself with a few lines of code, I opted to don't use these libraries at all. There are a few things that require more thought (e.g. jQuery Tab-UI combined integrated with Wicket-Ajax functionality, but at least back then these frameworks didn't offer that in a flexible way either). So I would say, check the libraries for how you are supposed to add the jquery functionality (behavior vs component hierarchy), and don't be afraid to just roll your own if necessary. It's not that much extra functionality that the library offers over just using raw Wicket and jQuery. My 2cnts. On Tue, Oct 2, 2012, at 13:02, ronny.v...@consult.nordea.com wrote: Hi I was not thinking about the base, ie AbstractDefaultAjaxBehavior. I was thinking about using one off the API - several components - could be accordion? could be some effects etc. So I was thinking about who has tried out both API's - has some experiences and suggest this API because bla bla. Hope I explain myself fully here. - Ronny -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: 02 October 2012 08:52 To: users@wicket.apache.org Subject: Re: Wicket and jQuery UI Hi, On Tue, Oct 2, 2012 at 9:28 AM, ronny.v...@consult.nordea.com wrote: Hi Wicket I have been looking at a) wiQuery and b) wicket-jquery-ui What API to use when doing a bridge between Wicket and jQuery UI? What exactly do you need ? The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior. Recommendations and experience would be very much welcomed. Thanks in advance! Best regards/Med venlig hilsen Ronny Voss Nordea Bank Danmark A/S Online Securities Processing Solutions Strandgade 3 DK-1401 København K Mobile: +45 26711952 E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and jQuery UI
Hi Pointbreak, At least for wicket-jquery-ui, it offers also pure behaviours integration for jquery extensions that are pure behaviours (such as Droppable). I think wiQuery does as well. For ease of defining such things for you own component, it is the main goal of wicket-jquery-ui; take a look at the three tutorials Sebastien made (sebfz1) for wicket-jquery-ui: http://code.google.com/p/wicket-jquery-ui/w/list?q=label:How-To (note: Sebastien is the author of wicket-jquery-ui). More on the topic, I as well would welcome experience returns from people who used both (though personally I'm inclined to use wicket-jquery-ui at the moment, but that's also because I'm biaised after having been really impressed at how fast Sebastien integrated run fox software Datepicker component to wicket-jquery-ui while doing his tutorial#3). Pointbreak wrote: It's a very long time ago that I looked at the API's, so it's likely things have changed since that time. But the problem I had with both products is that they are mostly component based API's (meaning they offer an Accordion component, Autocomplete component, etc.). Imho, a much more flexible approach for JQuery integration is to offer all jquery-ui functionality as behaviors. That way existing components (both from core, other libraries, or your own code) can more easily be augmented with jqeury-ui functionality. And since it's easy enough to do it yourself with a few lines of code, I opted to don't use these libraries at all. There are a few things that require more thought (e.g. jQuery Tab-UI combined integrated with Wicket-Ajax functionality, but at least back then these frameworks didn't offer that in a flexible way either). So I would say, check the libraries for how you are supposed to add the jquery functionality (behavior vs component hierarchy), and don't be afraid to just roll your own if necessary. It's not that much extra functionality that the library offers over just using raw Wicket and jQuery. My 2cnts. On Tue, Oct 2, 2012, at 13:02, ronny.v...@consult.nordea.com wrote: Hi I was not thinking about the base, ie AbstractDefaultAjaxBehavior. I was thinking about using one off the API - several components - could be accordion? could be some effects etc. So I was thinking about who has tried out both API's - has some experiences and suggest this API because bla bla. Hope I explain myself fully here. - Ronny -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: 02 October 2012 08:52 To: users@wicket.apache.org Subject: Re: Wicket and jQuery UI Hi, On Tue, Oct 2, 2012 at 9:28 AM, ronny.v...@consult.nordea.com wrote: Hi Wicket I have been looking at a) wiQuery and b) wicket-jquery-ui What API to use when doing a bridge between Wicket and jQuery UI? What exactly do you need ? The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior. Recommendations and experience would be very much welcomed. Thanks in advance! Best regards/Med venlig hilsen Ronny Voss Nordea Bank Danmark A/S Online Securities Processing Solutions Strandgade 3 DK-1401 København K Mobile: +45 26711952 E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and jQuery UI
But why not for tabs, accordion, slider, and other jquery components? That gives you much more flexibility in separating what a component logically does (e.g. render various sections of data, widgets, etc.), from how it is shown and interacted with in the browser (view as tabs, steps in a widget, accordion, just plain sections, ...). In jquery-ui itself you also add it as a behavior to a DOM element. So why not offer that flexibility in the Wicket integration? Idem ditto for things like draggable, droppable, etc. Why not offer the possibility to make any existing wicket panel/component a draggable by having a DraggableBehavior? In wicket-jquery-ui you need to subclass a Draggable panel, which is obviously not possible with already existing components/panels. Just to clarify: this is my very personal opinion on how a jquery integration should be designed (and actually how I've done it for many projects so far). That's obviously very subjective. It looks like an impressive library nonetheless! On Tue, Oct 2, 2012, at 15:30, Sébastien Gautrin wrote: Hi Pointbreak, At least for wicket-jquery-ui, it offers also pure behaviours integration for jquery extensions that are pure behaviours (such as Droppable). I think wiQuery does as well. For ease of defining such things for you own component, it is the main goal of wicket-jquery-ui; take a look at the three tutorials Sebastien made (sebfz1) for wicket-jquery-ui: http://code.google.com/p/wicket-jquery-ui/w/list?q=label:How-To (note: Sebastien is the author of wicket-jquery-ui). More on the topic, I as well would welcome experience returns from people who used both (though personally I'm inclined to use wicket-jquery-ui at the moment, but that's also because I'm biaised after having been really impressed at how fast Sebastien integrated run fox software Datepicker component to wicket-jquery-ui while doing his tutorial#3). Pointbreak wrote: It's a very long time ago that I looked at the API's, so it's likely things have changed since that time. But the problem I had with both products is that they are mostly component based API's (meaning they offer an Accordion component, Autocomplete component, etc.). Imho, a much more flexible approach for JQuery integration is to offer all jquery-ui functionality as behaviors. That way existing components (both from core, other libraries, or your own code) can more easily be augmented with jqeury-ui functionality. And since it's easy enough to do it yourself with a few lines of code, I opted to don't use these libraries at all. There are a few things that require more thought (e.g. jQuery Tab-UI combined integrated with Wicket-Ajax functionality, but at least back then these frameworks didn't offer that in a flexible way either). So I would say, check the libraries for how you are supposed to add the jquery functionality (behavior vs component hierarchy), and don't be afraid to just roll your own if necessary. It's not that much extra functionality that the library offers over just using raw Wicket and jQuery. My 2cnts. On Tue, Oct 2, 2012, at 13:02, ronny.v...@consult.nordea.com wrote: Hi I was not thinking about the base, ie AbstractDefaultAjaxBehavior. I was thinking about using one off the API - several components - could be accordion? could be some effects etc. So I was thinking about who has tried out both API's - has some experiences and suggest this API because bla bla. Hope I explain myself fully here. - Ronny -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: 02 October 2012 08:52 To: users@wicket.apache.org Subject: Re: Wicket and jQuery UI Hi, On Tue, Oct 2, 2012 at 9:28 AM, ronny.v...@consult.nordea.com wrote: Hi Wicket I have been looking at a) wiQuery and b) wicket-jquery-ui What API to use when doing a bridge between Wicket and jQuery UI? What exactly do you need ? The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior. Recommendations and experience would be very much welcomed. Thanks in advance! Best regards/Med venlig hilsen Ronny Voss Nordea Bank Danmark A/S Online Securities Processing Solutions Strandgade 3 DK-1401 København K Mobile: +45 26711952 E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h
Re: Wicket and jQuery UI
component, Autocomplete component, etc.). Imho, a much more flexible approach for JQuery integration is to offer all jquery-ui functionality as behaviors. That way existing components (both from core, other libraries, or your own code) can more easily be augmented with jqeury-ui functionality. And since it's easy enough to do it yourself with a few lines of code, I opted to don't use these libraries at all. There are a few things that require more thought (e.g. jQuery Tab-UI combined integrated with Wicket-Ajax functionality, but at least back then these frameworks didn't offer that in a flexible way either). So I would say, check the libraries for how you are supposed to add the jquery functionality (behavior vs component hierarchy), and don't be afraid to just roll your own if necessary. It's not that much extra functionality that the library offers over just using raw Wicket and jQuery. My 2cnts. On Tue, Oct 2, 2012, at 13:02, ronny.v...@consult.nordea.com wrote: Hi I was not thinking about the base, ie AbstractDefaultAjaxBehavior. I was thinking about using one off the API - several components - could be accordion? could be some effects etc. So I was thinking about who has tried out both API's - has some experiences and suggest this API because bla bla. Hope I explain myself fully here. - Ronny -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: 02 October 2012 08:52 To: users@wicket.apache.org Subject: Re: Wicket and jQuery UI Hi, On Tue, Oct 2, 2012 at 9:28 AM, ronny.v...@consult.nordea.com wrote: Hi Wicket I have been looking at a) wiQuery and b) wicket-jquery-ui What API to use when doing a bridge between Wicket and jQuery UI? What exactly do you need ? The bridge is AbstractDefaultAjaxBehavior - the base Ajax behavior. Recommendations and experience would be very much welcomed. Thanks in advance! Best regards/Med venlig hilsen Ronny Voss Nordea Bank Danmark A/S Online Securities Processing Solutions Strandgade 3 DK-1401 København K Mobile: +45 26711952 E-mail: ronny.v...@consult.nordea.commailto:ronny.v...@consult.nordea.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket rendering jquery late
Hi, Wicket 6 introduces dependencies between resources - http://wicketinaction.com/2012/07/wicket-6-resource-management/ So you can modify your JavaScriptResourceReferences to be org.apache.wicket.resource.JQueryPluginResourceReference instead. This way Wicket will be able to calculate the graph. Wicket 6.0.0 comes with JQuery 1.7.2 but you can upgrade it to 1.8 if you wish with org.apache.wicket.settings.IJavaScriptLibrarySettings#setJQueryReference I've tried Wicket's JavaScript unit tests with 1.8.0 when it was released and all was OK. https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-HowtocheckwhethermycustomversionofthebackingJavaScriptlibrary%28jQuery%29doesn%27tbreakWicketinternalssomehow%3F On Wed, Sep 26, 2012 at 2:40 PM, Oscar Besga Arcauz obe...@isdefe.es wrote: Hi wickers ! I've a problem with wicket and jquery resource rendering. My webpage has many panels wich uses jquery, and they have javascript attached to it. This panel-dependant javascript uses jquery, so I render jquery with a resourcerefernce in the webpage. (The page doesn't use ajax because I want to mantain page stateless and bookmarkable.) The problem is that the javascript attached to panel is rendered first into the page, and the jquery reference is the last. so, when the page fully renders, i've some 'ReferenceError: $ is not defined' errors in webrowser console. ¿ Has anyone experienced similar problems ? Other little question: wicket6 uses jquery 1.7.2; has anyone tried with 1.8.x ? Thanks in advance Oscar Besga Arcauz PS. Example code (little long) --- public class MyPage extends WebPage { public MyPage (PageParameters parameters) { super(parameters); add(new MyPageJsBehaviour()); add(new MyPanel(mypanel)); } private class MyPageJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { response.render(JavaScriptHeaderItem.forReference(JQueryResourceReference.get(),jquery)); super.renderHead(component,response); } } } public class MyPanel extends Panel { public MyPanel(String id,String lang) { super(id); add(new MyPanelJsBehaviour()); } private class MyPanelJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component,response); response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(MyPanel .class, MyPanel.js),mypaneljs)); /** //MyPanel.js $(function () { // -- here arises the error, as $ is not defined because MyPanel.js is loaded before jquery !!! $('mypanel').dosomething(); }); **/ } } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket rendering jquery late
If your panel depends on jquery, you should render the reference to jquery also in your panel. On Wed, Sep 26, 2012, at 13:40, Oscar Besga Arcauz wrote: Hi wickers ! I've a problem with wicket and jquery resource rendering. My webpage has many panels wich uses jquery, and they have javascript attached to it. This panel-dependant javascript uses jquery, so I render jquery with a resourcerefernce in the webpage. (The page doesn't use ajax because I want to mantain page stateless and bookmarkable.) The problem is that the javascript attached to panel is rendered first into the page, and the jquery reference is the last. so, when the page fully renders, i've some 'ReferenceError: $ is not defined' errors in webrowser console. ¿ Has anyone experienced similar problems ? Other little question: wicket6 uses jquery 1.7.2; has anyone tried with 1.8.x ? Thanks in advance Oscar Besga Arcauz PS. Example code (little long) --- public class MyPage extends WebPage { public MyPage (PageParameters parameters) { super(parameters); add(new MyPageJsBehaviour()); add(new MyPanel(mypanel)); } private class MyPageJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { response.render(JavaScriptHeaderItem.forReference(JQueryResourceReference.get(),jquery)); super.renderHead(component,response); } } } public class MyPanel extends Panel { public MyPanel(String id,String lang) { super(id); add(new MyPanelJsBehaviour()); } private class MyPanelJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component,response); response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(MyPanel .class, MyPanel.js),mypaneljs)); /** //MyPanel.js $(function () { // -- here arises the error, as $ is not defined because MyPanel.js is loaded before jquery !!! $('mypanel').dosomething(); }); **/ } } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket rendering jquery late
Ok, thanks I've done this. althougth the name is horrible public abstract class JavaScriptJQueryDependantResourceReference extends JavaScriptResourceReference { public JavaScriptJQueryDependantResourceReference(Class? scope, String name, Locale locale, String style, String variation) { super(scope, name, locale, style, variation); } public JavaScriptJQueryDependantResourceReference(Class? scope, String name) { super(scope, name); } @Override public Iterable? extends HeaderItem getDependencies() { ListHeaderItem dependencies = new ArrayListHeaderItem(); Iterable? extends HeaderItem iterable = super.getDependencies(); if (iterable != null) for(HeaderItem headerItem : iterable) dependencies.add(headerItem); dependencies.add(JavaScriptReferenceHeaderItem.forReference(JQueryResourceReference.get())); return dependencies; } } Oscar Besga Arcauz -Martin Grigorov mgrigo...@apache.org escribió: - Para: users@wicket.apache.org De: Martin Grigorov mgrigo...@apache.org Fecha: 26/09/2012 13:49 Asunto: Re: Wicket rendering jquery late Hi, Wicket 6 introduces dependencies between resources - http://wicketinaction.com/2012/07/wicket-6-resource-management/ So you can modify your JavaScriptResourceReferences to be org.apache.wicket.resource.JQueryPluginResourceReference instead. This way Wicket will be able to calculate the graph. Wicket 6.0.0 comes with JQuery 1.7.2 but you can upgrade it to 1.8 if you wish with org.apache.wicket.settings.IJavaScriptLibrarySettings#setJQueryReference I've tried Wicket's JavaScript unit tests with 1.8.0 when it was released and all was OK. https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-HowtocheckwhethermycustomversionofthebackingJavaScriptlibrary%28jQuery%29doesn%27tbreakWicketinternalssomehow%3F On Wed, Sep 26, 2012 at 2:40 PM, Oscar Besga Arcauz obe...@isdefe.es wrote: Hi wickers ! I've a problem with wicket and jquery resource rendering. My webpage has many panels wich uses jquery, and they have javascript attached to it. This panel-dependant javascript uses jquery, so I render jquery with a resourcerefernce in the webpage. (The page doesn't use ajax because I want to mantain page stateless and bookmarkable.) The problem is that the javascript attached to panel is rendered first into the page, and the jquery reference is the last. so, when the page fully renders, i've some 'ReferenceError: $ is not defined' errors in webrowser console. ¿ Has anyone experienced similar problems ? Other little question: wicket6 uses jquery 1.7.2; has anyone tried with 1.8.x ? Thanks in advance Oscar Besga Arcauz PS. Example code (little long) --- public class MyPage extends WebPage { public MyPage (PageParameters parameters) { super(parameters); add(new MyPageJsBehaviour()); add(new MyPanel(mypanel)); } private class MyPageJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { response.render(JavaScriptHeaderItem.forReference(JQueryResourceReference.get(),jquery)); super.renderHead(component,response); } } } public class MyPanel extends Panel { public MyPanel(String id,String lang) { super(id); add(new MyPanelJsBehaviour()); } private class MyPanelJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component,response); response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(MyPanel .class, MyPanel.js),mypaneljs)); /** //MyPanel.js $(function () { // -- here arises the error, as $ is not defined because MyPanel.js is loaded before jquery !!! $('mypanel').dosomething(); }); **/ } } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket rendering jquery late
Just use org.apache.wicket.resource.JQueryPluginResourceReference as I said earlier today ;-) On Wed, Sep 26, 2012 at 4:55 PM, Oscar Besga Arcauz obe...@isdefe.es wrote: Ok, thanks I've done this. althougth the name is horrible public abstract class JavaScriptJQueryDependantResourceReference extends JavaScriptResourceReference { public JavaScriptJQueryDependantResourceReference(Class? scope, String name, Locale locale, String style, String variation) { super(scope, name, locale, style, variation); } public JavaScriptJQueryDependantResourceReference(Class? scope, String name) { super(scope, name); } @Override public Iterable? extends HeaderItem getDependencies() { ListHeaderItem dependencies = new ArrayListHeaderItem(); Iterable? extends HeaderItem iterable = super.getDependencies(); if (iterable != null) for(HeaderItem headerItem : iterable) dependencies.add(headerItem); dependencies.add(JavaScriptReferenceHeaderItem.forReference(JQueryResourceReference.get())); return dependencies; } } Oscar Besga Arcauz -Martin Grigorov mgrigo...@apache.org escribió: - Para: users@wicket.apache.org De: Martin Grigorov mgrigo...@apache.org Fecha: 26/09/2012 13:49 Asunto: Re: Wicket rendering jquery late Hi, Wicket 6 introduces dependencies between resources - http://wicketinaction.com/2012/07/wicket-6-resource-management/ So you can modify your JavaScriptResourceReferences to be org.apache.wicket.resource.JQueryPluginResourceReference instead. This way Wicket will be able to calculate the graph. Wicket 6.0.0 comes with JQuery 1.7.2 but you can upgrade it to 1.8 if you wish with org.apache.wicket.settings.IJavaScriptLibrarySettings#setJQueryReference I've tried Wicket's JavaScript unit tests with 1.8.0 when it was released and all was OK. https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-HowtocheckwhethermycustomversionofthebackingJavaScriptlibrary%28jQuery%29doesn%27tbreakWicketinternalssomehow%3F On Wed, Sep 26, 2012 at 2:40 PM, Oscar Besga Arcauz obe...@isdefe.es wrote: Hi wickers ! I've a problem with wicket and jquery resource rendering. My webpage has many panels wich uses jquery, and they have javascript attached to it. This panel-dependant javascript uses jquery, so I render jquery with a resourcerefernce in the webpage. (The page doesn't use ajax because I want to mantain page stateless and bookmarkable.) The problem is that the javascript attached to panel is rendered first into the page, and the jquery reference is the last. so, when the page fully renders, i've some 'ReferenceError: $ is not defined' errors in webrowser console. ¿ Has anyone experienced similar problems ? Other little question: wicket6 uses jquery 1.7.2; has anyone tried with 1.8.x ? Thanks in advance Oscar Besga Arcauz PS. Example code (little long) --- public class MyPage extends WebPage { public MyPage (PageParameters parameters) { super(parameters); add(new MyPageJsBehaviour()); add(new MyPanel(mypanel)); } private class MyPageJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { response.render(JavaScriptHeaderItem.forReference(JQueryResourceReference.get(),jquery)); super.renderHead(component,response); } } } public class MyPanel extends Panel { public MyPanel(String id,String lang) { super(id); add(new MyPanelJsBehaviour()); } private class MyPanelJsBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { super.renderHead(component,response); response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(MyPanel .class, MyPanel.js),mypaneljs)); /** //MyPanel.js $(function () { // -- here arises the error, as $ is not defined because MyPanel.js is loaded before jquery !!! $('mypanel').dosomething(); }); **/ } } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail
Re: Wicket with Jquery jqGrid
AFAIK JWeekend has been working on an integration, see demo at [1]. I have been working in another integration which is not (yet) as advanced/complete as JWekeend´s is. You can find the details at [2] Best, Ernesto Refereces, 1-http://labs.jweekend.com/public/ 2-http://code.google.com/p/wijqgrid/ On Sun, Mar 14, 2010 at 11:23 PM, Verma Shalini (HCTM/ETA) shalini.ve...@us.bosch.com wrote: Has anybody tried integrating Jquery jqGRid with wicket? Thanks Shalini
Re: Wicket with Jquery jqGrid
Thanks for your reply. Would you be able to tell when are you expecting(tentative date) the integration work to be over? reiern70 wrote: AFAIK JWeekend has been working on an integration, see demo at [1]. I have been working in another integration which is not (yet) as advanced/complete as JWekeend´s is. You can find the details at [2] Best, Ernesto Refereces, 1-http://labs.jweekend.com/public/ 2-http://code.google.com/p/wijqgrid/ On Sun, Mar 14, 2010 at 11:23 PM, Verma Shalini (HCTM/ETA) shalini.ve...@us.bosch.com wrote: Has anybody tried integrating Jquery jqGRid with wicket? Thanks Shalini -- View this message in context: http://old.nabble.com/Wicket-with-Jquery-jqGrid-tp27898644p27908397.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JQuery
On Wed, Nov 11, 2009 at 3:53 PM, Peter Ross pdr...@gmail.com wrote: On Wed, Oct 28, 2009 at 5:08 PM, Jason Novotny wrote: Martin Makundi wrote: ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly if you replace your components via ajax - or at least you might have to work hard on it. Bingo!! I've been hitting this wall, and pulling my hair out-- in fact I may ditch jQuery for this very reason since I can't find a suitable workaround :-( Here is the solution I used, I just emailed the list to ask if this is the correct approach: The following is some code which has an integer field with an associated slider The AbstractBehavior is the bit which determines if we are in an ajax request or not and adds the init js code in the correct place to make sure it's called. private void init() { field = new TextField(field, getModel()); add(field); WebComponent c = new WebComponent(slider); c.setOutputMarkupId(true); slider_id = c.getMarkupId(); add(c); // Write out the javascript to initialize the slider add(new AbstractBehavior() { �...@override public void renderHead(IHeaderResponse response) { IRequestTarget target = RequestCycle.get().getRequestTarget(); if (target instanceof AjaxRequestTarget) { // If the target is an ajax request then we need // to execute just the slider js. AjaxRequestTarget t = (AjaxRequestTarget) target; t.appendJavascript(init_slider_js()); } else { // Otherwise render the slider when the document is ready. response.renderJavascript(init_slider_when_doc_ready_js(), null); } } }); } Someone helpfully pointed out to me that renderHead could be simplified to public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavascript(init_slider_js()); } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JQuery
On Wed, Oct 28, 2009 at 5:08 PM, Jason Novotny wrote: Martin Makundi wrote: ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly if you replace your components via ajax - or at least you might have to work hard on it. Bingo!! I've been hitting this wall, and pulling my hair out-- in fact I may ditch jQuery for this very reason since I can't find a suitable workaround :-( Here is the solution I used, I just emailed the list to ask if this is the correct approach: The following is some code which has an integer field with an associated slider The AbstractBehavior is the bit which determines if we are in an ajax request or not and adds the init js code in the correct place to make sure it's called. private void init() { field = new TextField(field, getModel()); add(field); WebComponent c = new WebComponent(slider); c.setOutputMarkupId(true); slider_id = c.getMarkupId(); add(c); // Write out the javascript to initialize the slider add(new AbstractBehavior() { @Override public void renderHead(IHeaderResponse response) { IRequestTarget target = RequestCycle.get().getRequestTarget(); if (target instanceof AjaxRequestTarget) { // If the target is an ajax request then we need // to execute just the slider js. AjaxRequestTarget t = (AjaxRequestTarget) target; t.appendJavascript(init_slider_js()); } else { // Otherwise render the slider when the document is ready. response.renderJavascript(init_slider_when_doc_ready_js(), null); } } }); } private String init_slider_js() { return $('# + slider_id + ').slider({min: 0, max: 1, step: 0.1});; } private String init_slider_when_doc_ready_js() { return $(document).ready(function() { + init_slider_js() + });; } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JQuery
Hi.. I came across jquery live or livequery. That might work better with wicket, I'll look more into that. Basically the idea is that the event handlers are standalone and if you replace a dom element with another, the events will still work if the new element matches the event specification (id, tag name, class etc.). ** Martin 2009/10/28 Jeremy Thomerson jer...@wickettraining.com: I use custom event binding quite a bit within jQuery... for instance: $(document).bind('fooUpdated', function() { // here I make a textfield within foo into an autocomplete textfield }); Then, when I call to AJAX that replaces foo, I just do: $(document).trigger('fooUpdated'); This works great. Just do all your UI component creation within custom event handlers. Then, to handle the creation of them on load, use: $(document).ready(function() { $(document).trigger('fooUpdated'); }); The problem comes when using plugins that [foolishly] use $(document).ready to do any styling, etc. If you encounter them, you may be able to try $(document).trigger('ready'); I have never tried this - there may be unintended consequences. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 27, 2009 at 11:38 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly if you replace your components via ajax - or at least you might have to work hard on it. ** Marin 2009/10/27 Jeremy Thomerson jer...@wickettraining.com: I'd suggest only using jQuery for the UI effects and let Wicket do the AJAX. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 27, 2009 at 4:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JQuery
Bingo!! I've been hitting this wall, and pulling my hair out-- in fact I may ditch jQuery for this very reason since I can't find a suitable workaround :-( Martin Makundi wrote: ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly if you replace your components via ajax - or at least you might have to work hard on it. ** Marin 2009/10/27 Jeremy Thomerson jer...@wickettraining.com: I'd suggest only using jQuery for the UI effects and let Wicket do the AJAX. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 27, 2009 at 4:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JQuery
Hi Jeffery, I would be interested to know what put you off about wiquery, any feedback is always welcome. Anyway, for ajax communication, add an AbstractAajxBehaviour to your page / component, and use the url this generates to pass to your jquery ajax something like this: String callbackurl = ajaxBehaviour.getCallbackUrl(true).toString(). String ajaxJs = $.get(' + callbackurl +', function(data){alert('Data Loaded: ' + data);}); When you make an ajax request to this url the onRequest method is called, mine typically look like this: public void onRequest() { final RequestCycle requestCycle = RequestCycle.get(); final PageParameters pageParameters = new PageParameters(requestCycle.getRequest().getParameterMap()); } Using the page parameters object lets you get access to the request parameters easily. If you do not intend to return a result then you should add this line in: RequestCycle.get().setRequestTarget(EmptyRequestTarget.getInstance()); to stop a response being sent. As for ajax replacing of ui components, I usually find that re-running the javascript code to create the ui component works fine. Or another way to get round the problem is to have a element inside the main javascript ui container, and only replace that. Hope this helps Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com Jeffrey Schneller wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks. - http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Wicket-and-JQuery-tp26085243p26091993.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket and JQuery
Can you expand on this? The plan was to replace components via ajax [using wicket's ajax support] and have the jquery+plugins skin the components. For example: Have a jQuery accordion that in each accordion step allows the user to click a button or a link. The button or the link would display a jquery dialog that the user can do something with [make a selection] and then other elements on the page would be updated to show what the user selected. The other elements on the page will also be jquery+plugins skinned elements. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Wednesday, October 28, 2009 12:38 AM To: users@wicket.apache.org Subject: Re: Wicket and JQuery ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly if you replace your components via ajax - or at least you might have to work hard on it. ** Marin 2009/10/27 Jeremy Thomerson jer...@wickettraining.com: I'd suggest only using jQuery for the UI effects and let Wicket do the AJAX. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 27, 2009 at 4:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket and JQuery
Richard, You lost me a bit with the AbstractAjaxBehaviour stuff. Was this to get wiquery to work or to not use wiquery. The problems I saw with wiquery when I first looked [a few weeks back] at were: 1) seemed a bit of a work-in-progress / proof of concept, 2) lack of samples + a good base of users, 3) how to integrate with the various plugins that are out there. I just took a second look at the wiquery site and it looks much better then when I first looked. There are now samples with code that actual work and the mailing list is getting more traffic. I still have a concern with integrating the various plugins available for jQuery. I don't want to re-invent the wheel and really don't want to spend time writing java code to get a jQuery plugin to be used with wiQuery. The point of the plugin is to not have to write additional code. How would I integrate the various plugins available into wiQuery? Thanks. -Original Message- From: richardwilko [mailto:richardjohnwilkin...@gmail.com] Sent: Wednesday, October 28, 2009 5:57 AM To: users@wicket.apache.org Subject: Re: Wicket and JQuery Hi Jeffery, I would be interested to know what put you off about wiquery, any feedback is always welcome. Anyway, for ajax communication, add an AbstractAajxBehaviour to your page / component, and use the url this generates to pass to your jquery ajax something like this: String callbackurl = ajaxBehaviour.getCallbackUrl(true).toString(). String ajaxJs = $.get(' + callbackurl +', function(data){alert('Data Loaded: ' + data);}); When you make an ajax request to this url the onRequest method is called, mine typically look like this: public void onRequest() { final RequestCycle requestCycle = RequestCycle.get(); final PageParameters pageParameters = new PageParameters(requestCycle.getRequest().getParameterMap()); } Using the page parameters object lets you get access to the request parameters easily. If you do not intend to return a result then you should add this line in: RequestCycle.get().setRequestTarget(EmptyRequestTarget.getInstance()); to stop a response being sent. As for ajax replacing of ui components, I usually find that re-running the javascript code to create the ui component works fine. Or another way to get round the problem is to have a element inside the main javascript ui container, and only replace that. Hope this helps Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com Jeffrey Schneller wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks. - http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Wicket-and-JQuery-tp26085243p26091993.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket and JQuery
Hi Jeffrey, AbstractAjaxBehaviour bit is nothing to do with wiquery, although it is the method I use when I want to use jquery ajax when writing wiquery components. Essentially, AbstractAjaxBehaviour is a behaviour that you add to the page or component and you can call getCallbackUrl(true).toString() on the instance of AbstractAjaxBehaviour which gives you the url which calls the AbstractAjaxBehaviour onRequest method (which you have to implement). You then use this url in your jquery ajax. This is only if you want to use jquery ajax though, and as someone already suggested, it is probably easier to use wicket ajax. Wiquery implements most of the core jQuery UI components, so you shouldn't have to implement those yourself. The demo application should give you a good idea of what is already available. If you want to implement code for another jQuery library, then you can do it by implementing IWiQueryPlugin, but this probably isn't the right place to discuss this in detail (wiquery mailing list would be better). I think that there are plans for there to be a 'wiquery-extras' project, which is made up of 3rd party jQuery components, but this has not been set up yet. Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com Jeffrey Schneller wrote: Richard, You lost me a bit with the AbstractAjaxBehaviour stuff. Was this to get wiquery to work or to not use wiquery. The problems I saw with wiquery when I first looked [a few weeks back] at were: 1) seemed a bit of a work-in-progress / proof of concept, 2) lack of samples + a good base of users, 3) how to integrate with the various plugins that are out there. I just took a second look at the wiquery site and it looks much better then when I first looked. There are now samples with code that actual work and the mailing list is getting more traffic. I still have a concern with integrating the various plugins available for jQuery. I don't want to re-invent the wheel and really don't want to spend time writing java code to get a jQuery plugin to be used with wiQuery. The point of the plugin is to not have to write additional code. How would I integrate the various plugins available into wiQuery? Thanks. -Original Message- From: richardwilko [mailto:richardjohnwilkin...@gmail.com] Sent: Wednesday, October 28, 2009 5:57 AM To: users@wicket.apache.org Subject: Re: Wicket and JQuery Hi Jeffery, I would be interested to know what put you off about wiquery, any feedback is always welcome. Anyway, for ajax communication, add an AbstractAajxBehaviour to your page / component, and use the url this generates to pass to your jquery ajax something like this: String callbackurl = ajaxBehaviour.getCallbackUrl(true).toString(). String ajaxJs = $.get(' + callbackurl +', function(data){alert('Data Loaded: ' + data);}); When you make an ajax request to this url the onRequest method is called, mine typically look like this: public void onRequest() { final RequestCycle requestCycle = RequestCycle.get(); final PageParameters pageParameters = new PageParameters(requestCycle.getRequest().getParameterMap()); } Using the page parameters object lets you get access to the request parameters easily. If you do not intend to return a result then you should add this line in: RequestCycle.get().setRequestTarget(EmptyRequestTarget.getInstance()); to stop a response being sent. As for ajax replacing of ui components, I usually find that re-running the javascript code to create the ui component works fine. Or another way to get round the problem is to have a element inside the main javascript ui container, and only replace that. Hope this helps Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com Jeffrey Schneller wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks. - http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Wicket-and-JQuery-tp26085243p26091993.html Sent from the Wicket - User mailing list archive at Nabble.com
Re: Wicket and JQuery
I use custom event binding quite a bit within jQuery... for instance: $(document).bind('fooUpdated', function() { // here I make a textfield within foo into an autocomplete textfield }); Then, when I call to AJAX that replaces foo, I just do: $(document).trigger('fooUpdated'); This works great. Just do all your UI component creation within custom event handlers. Then, to handle the creation of them on load, use: $(document).ready(function() { $(document).trigger('fooUpdated'); }); The problem comes when using plugins that [foolishly] use $(document).ready to do any styling, etc. If you encounter them, you may be able to try $(document).trigger('ready'); I have never tried this - there may be unintended consequences. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 27, 2009 at 11:38 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly if you replace your components via ajax - or at least you might have to work hard on it. ** Marin 2009/10/27 Jeremy Thomerson jer...@wickettraining.com: I'd suggest only using jQuery for the UI effects and let Wicket do the AJAX. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 27, 2009 at 4:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and JQuery
I'd suggest only using jQuery for the UI effects and let Wicket do the AJAX. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 27, 2009 at 4:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I am trying to determine how to use Wicket and JQuery. I would prefer not using wiQuery or similar. I would like to just include the jQuery libraries in my html and then use jQuery as javascript and not wrap everything in java on the server side to generate the client code. How would one go about doing this? I assume the basic jQuery functionality is straight forward. However how would you implement jQuery code that uses Ajax to communicate back to the server using Wicket on the server? Or would the recommendation be to let Wicket handle the Ajax communication and only use jQuery for the UI components such as Lightbox, Greybox, apple like sliders, etc. Any ideas? Thanks.
Re: Wicket and JQuery - lavalamp
Cute :) 2009/8/15 Eyal Golan egola...@gmail.com: Hi all,I've created a small Wicket module for the lavalamp JQuery library (some links below). It's very basic and I plan to work on it more. Please be kind and give me any suggestion and insights. Right now I'm thinking on how to keep the link pointer on the current page. Check the examples in that project. wicket-lavalamp code http://code.google.com/p/wicket-lavalamp/ Some lavalamp examples: http://mancub.net/tutorials/lavalamp-examples http://mancub.net/tutorials/lavalamp-examples http://www.2mellow.com/?page_id=264 Thanks, http://www.2mellow.com/?page_id=264 Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket an jQuery: current status
No, no connections. I thin the wicketstuff project is still based upon jquery 1.2. I don't know if this project is still active. -Ursprüngliche Nachricht- Von: Rob Sonke [mailto:r...@tigrou.nl] Gesendet: Donnerstag, 4. Juni 2009 07:22 An: users@wicket.apache.org Betreff: Re: Wicket an jQuery: current status Nice, is there any connection between your project and wickext and the existing code in wicketstuff? On 6/3/09 10:18 PM, Stefan Lindner wrote: Hi all, as I told you, I am working on a Apache Wicket - jQuery integration. The current status can be found under http://subversion.visionet.de/project/WicketJQuery Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket an jQuery: current status
Nice, is there any connection between your project and wickext and the existing code in wicketstuff? On 6/3/09 10:18 PM, Stefan Lindner wrote: Hi all, as I told you, I am working on a Apache Wicket - jQuery integration. The current status can be found under http://subversion.visionet.de/project/WicketJQuery Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket and jquery
take a look at this https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent -dipu 2009/5/29 Dorothée Giernoth dorothee.giern...@kds-kg.de: Hello everyone, i know this might sound a little weird and naive and maybe stupid ... I dunno, I'll ask anyway (though I did research myself, but I would need some sort of useful hint for a total wicket-jquery-newbie): how can I use wicket and jquery together? Where can I find an example? And yes I did ask google, but seriously - no harm meant - it seems soo NOT organized ... there are like a billion dead links ... maybe even more and I am on the edge and desperate ... s please, bear with me! Thnx, dg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket and jquery
Hi, There's no magic here. it's just a (decent) javascript library that you can use. Usually what people are doing (or at least how I use it) here is build the web application the normal way - html / css / javascript (consider this the designer role) and then wickify it - meaning go through the initial design and put wicket:id's to elements I want to connect to my java logic. And do whatever my business rules are. Or go one step further and build stand-alone component for reuse on other projects. The point is I don't actually care if the designer uses jquery or extjs or anything else. He's not forced on using any javascript at all. Perfectly clean separation. I guess you're looking on using a nice widget that somebody built using jquery. The integration with wicket is as simple as I said above. No magic. For a very (_very_) dumb example, take a look for instance here (to get an idea) : http://www.dooriented.com/blog/2009/05/11/wicket-component-jquery-accordion-menu/ Hope I was able to help you a little bit, Cristi Manole 2009/5/29 Dorothée Giernoth dorothee.giern...@kds-kg.de Hello everyone, i know this might sound a little weird and naive and maybe stupid ... I dunno, I'll ask anyway (though I did research myself, but I would need some sort of useful hint for a total wicket-jquery-newbie): how can I use wicket and jquery together? Where can I find an example? And yes I did ask google, but seriously - no harm meant - it seems soo NOT organized ... there are like a billion dead links ... maybe even more and I am on the edge and desperate ... s please, bear with me! Thnx, dg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Cristi Manole Nova Creator Software www.novacreator.com
Re: wicket and jquery
not bad. do you have a link? Cristi Manole On Fri, May 29, 2009 at 1:39 PM, Stefan Lindner lind...@visionet.de wrote: Currently I'm building a wicket library around jQuery. Drag and drop and resizable are ready for use (with callback handlers in Wicket-Java onDrop, on Resized etc.). If anybody is interrested I can provied a simple library with some simple examples. -Ursprüngliche Nachricht- Von: Dorothée Giernoth [mailto:dorothee.giern...@kds-kg.de] Gesendet: Freitag, 29. Mai 2009 17:33 An: users@wicket.apache.org Betreff: AW: wicket and jquery Thnx guys, I will check that out. This might mean, that not all hope is lost! Have a great weekend! -Ursprüngliche Nachricht- Von: Rodolfo Hansen [mailto:kry...@gmail.com] Gesendet: Freitag, 29. Mai 2009 17:21 An: users@wicket.apache.org Betreff: Re: wicket and jquery Also you can checkout http://code.google.com/p/wiquery/ which has a couple of ideas... On Fri, May 29, 2009 at 11:15 AM, Dipu dipu@googlemail.com wrote: take a look at this https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent -dipu 2009/5/29 Dorothée Giernoth dorothee.giern...@kds-kg.de: Hello everyone, i know this might sound a little weird and naive and maybe stupid ... I dunno, I'll ask anyway (though I did research myself, but I would need some sort of useful hint for a total wicket-jquery-newbie): how can I use wicket and jquery together? Where can I find an example? And yes I did ask google, but seriously - no harm meant - it seems soo NOT organized ... there are like a billion dead links ... maybe even more and I am on the edge and desperate ... s please, bear with me! Thnx, dg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Rodolfo Hansen CEO, KindleIT Software Development Email: rhan...@kindleit.net Office: 1 (809) 732-5200 Mobile: 1 (809) 299-7332 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Cristi Manole Nova Creator Software www.novacreator.com
RE: wicket and jquery
I'm just finishing up some things (e.g. documentation :-) and proper examples). I must confess that the library is based upon wicket 1.4. and i don't plan to backport it to wicket 1.3. In a few days I will open up our subversion repository for public access. -Ursprüngliche Nachricht- Von: Cristi Manole [mailto:cristiman...@gmail.com] Gesendet: Freitag, 29. Mai 2009 19:32 An: users@wicket.apache.org Betreff: Re: wicket and jquery not bad. do you have a link? Cristi Manole On Fri, May 29, 2009 at 1:39 PM, Stefan Lindner lind...@visionet.de wrote: Currently I'm building a wicket library around jQuery. Drag and drop and resizable are ready for use (with callback handlers in Wicket-Java onDrop, on Resized etc.). If anybody is interrested I can provied a simple library with some simple examples. -Ursprüngliche Nachricht- Von: Dorothée Giernoth [mailto:dorothee.giern...@kds-kg.de] Gesendet: Freitag, 29. Mai 2009 17:33 An: users@wicket.apache.org Betreff: AW: wicket and jquery Thnx guys, I will check that out. This might mean, that not all hope is lost! Have a great weekend! -Ursprüngliche Nachricht- Von: Rodolfo Hansen [mailto:kry...@gmail.com] Gesendet: Freitag, 29. Mai 2009 17:21 An: users@wicket.apache.org Betreff: Re: wicket and jquery Also you can checkout http://code.google.com/p/wiquery/ which has a couple of ideas... On Fri, May 29, 2009 at 11:15 AM, Dipu dipu@googlemail.com wrote: take a look at this https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent -dipu 2009/5/29 Dorothée Giernoth dorothee.giern...@kds-kg.de: Hello everyone, i know this might sound a little weird and naive and maybe stupid ... I dunno, I'll ask anyway (though I did research myself, but I would need some sort of useful hint for a total wicket-jquery-newbie): how can I use wicket and jquery together? Where can I find an example? And yes I did ask google, but seriously - no harm meant - it seems soo NOT organized ... there are like a billion dead links ... maybe even more and I am on the edge and desperate ... s please, bear with me! Thnx, dg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Rodolfo Hansen CEO, KindleIT Software Development Email: rhan...@kindleit.net Office: 1 (809) 732-5200 Mobile: 1 (809) 299-7332 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Cristi Manole Nova Creator Software www.novacreator.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Stuff JQuery + Wicket Ajax
Hi all, Please ignore this mail, i found the reason why it was not working. just calling target.appendJavascript(dnd.getJSFunctionName4Start() + ();); will do the trick. I had an idea its about calling nd.getJSFunctionName4Start(), but i tried it in a wrong way, instead of appending i tried using AjaxCalldecorator. Thanks Dipu On Nov 21, 2007 4:37 PM, Dipu Seminlal [EMAIL PROTECTED] wrote: Hi All, I am trying to use the Wicket Stuff JQuery - Drag and Drop feature, I constructed simple list as in the example and everything works fine, Now i add a new item to the list, i add the new item on the click of an AjaxLink and redraw the list. But after that rendering the new list on the AjaxLink click, the Jquery drag drop feature fails to work, It works again if i do a page refresh. what should i be doing to make sure that the drab drop feature will continue to work even after redrawing the list with new items Regards Dipu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]