On Mon, Feb 3, 2025 at 2:57 PM Kyle Bibby <[email protected]> wrote:

> Sorry for the late reply.
>
> I am using
> WebApplication.get().
> getJavaScriptLibrarySettings().setJQueryReference(...)
> to set the reference to V3 for Wicket to use.
> I was also loading separate jquery.min and jquery-ui.min scripts as their
> own respective JavaScriptResourceReference instantiations.
>

> I was also loading separate jquery.min
Remove this one and try again.

The application should use only the one contributed by
getJavaScriptLibrarySettings().setJQueryReference(...)



>
> On Tue, Jan 28, 2025 at 4:29 AM Martin Grigorov <[email protected]>
> wrote:
>
> > Hi,
> >
> > How do you load jquery.min.js ?
> > Do you use
> >
> WebApplication.get().getJavaScriptLibrarySettings().setJQueryReference(...)
> > ? Or some other method ?
> >
> > On Mon, Jan 27, 2025 at 5:00 PM Kyle Bibby <[email protected]> wrote:
> >
> > > I'm upgrading a legacy project from wicket 6 to 8.15.0 with jquery v
> > 2.2.4
> > > and I am encountering an issue when including lazy load panels.
> > >
> > > For context I'm loading an AjaxLazyLoadPanel on a page that contains a
> > > separate form.
> > > I am including jquery.min and jquery-ui.min (v2.2.4) as a separate
> > > resources as they are required for other dependencies and am loading
> them
> > > before any others including the built-in
> > > JavascriptLibrarySettings.getWicketAjaxReference().
> > > I am running my application in debug mode so wicket loads the resource
> > > wicket-ajax-jquery-debug.js as is expected.
> > >
> > > Issue 1: The first issue is an error related to the call new
> > > Wicket.Throttler(true) within wicket-ajax-jquery-debug.js, stating that
> > > Wicket.Throttler is not a valid constructor:
> > >
> > > wicket-ajax-jquery-debugv-1720023151379.js:63 Uncaught TypeError:
> > > Wicket.Throttler is not a constructor
> > >     at wicket-ajax-jquery-debugv-1720023151379.js:63:14
> > >     at wicket-ajax-jquery-debugv-1720023151379.js:270:3
> > >
> > > The constructor is properly defined within wicket-ajax-jquery.js. I
> would
> > > expect both the "jquery" and "jquery-debug" scripts to be consistent
> but
> > > they are not.
> > >
> > > Can my issues be related to my jquery.min and jquery-ui.min resources
> > that
> > > I'm loading or perhaps the order in which they are being loaded? I
> didn't
> > > see anything in change logs from 6 -> 7 -> 8 specific to changes to how
> > > lazy load panels are supposed to be used. Maybe I missed something. Any
> > > insights would be appreciated.
> > >
> > > --
> > > *Kyle Bibby**|* Software Tester | Avema Corporation
> > > 67 Mowat Ave, Suite 345, Toronto, ON  M6K 3E3
> > > T: (416) 348-7286 <+14163487286> | E: [email protected]
> > > <[email protected]>
> > >
> > >  www.avema.com <https://www.facebook.com/AvemaCorporation>
> > >
> > > This message is directed in confidence solely to the person named
> > > above. The information in this message, and any attachment, may be
> > > proprietary, confidential, privileged and exempt from disclosure under
> > > applicable law. If the reader of this message is not the intended
> > > recipient, you are hereby notified that any use, distribution, copying
> > > or disclosure is prohibited. If you have received this message in
> > > error, please notify us immediately by telephone or by e-mail and
> > > delete this message, without making a copy. Thank you for your
> > > cooperation.
> > >
> > > --
> > >
> > > Le présent message est destiné exclusivement à la personne dont le nom
> > > figure ci-dessus. L’information qu’il contient peut être privée,
> > > confidentielle, privilégiée et exempte de divulgation aux termes des
> > > lois applicables. Si vous n’êtes pas le destinataire visé par ce
> > > message, veuillez noter que l’utilisation, la distribution, la
> > > reproduction ou la divulgation de ce message est interdite. Si vous
> > > avez reçu le présent message par erreur, veuillez nous en aviser
> > > immédiatement par téléphone ou par courriel et supprimer ce message,
> > > sans en faire de copie. Merci de votre
> > >
> >
>
>
> --
> *Kyle Bibby**|* Software Tester | Avema Corporation
> 67 Mowat Ave, Suite 345, Toronto, ON  M6K 3E3
> T: (416) 348-7286 <+14163487286> | E: [email protected]
> <[email protected]>
>
>  www.avema.com <https://www.facebook.com/AvemaCorporation>
>
> This message is directed in confidence solely to the person named
> above. The information in this message, and any attachment, may be
> proprietary, confidential, privileged and exempt from disclosure under
> applicable law. If the reader of this message is not the intended
> recipient, you are hereby notified that any use, distribution, copying
> or disclosure is prohibited. If you have received this message in
> error, please notify us immediately by telephone or by e-mail and
> delete this message, without making a copy. Thank you for your
> cooperation.
>
> --
>
> Le présent message est destiné exclusivement à la personne dont le nom
> figure ci-dessus. L’information qu’il contient peut être privée,
> confidentielle, privilégiée et exempte de divulgation aux termes des
> lois applicables. Si vous n’êtes pas le destinataire visé par ce
> message, veuillez noter que l’utilisation, la distribution, la
> reproduction ou la divulgation de ce message est interdite. Si vous
> avez reçu le présent message par erreur, veuillez nous en aviser
> immédiatement par téléphone ou par courriel et supprimer ce message,
> sans en faire de copie. Merci de votre
>

Reply via email to