Discussion:
DynamicJQueryResourceReference deprecated - now what?
Francesco Chicchiriccò
2018-10-03 15:37:42 UTC
Permalink
Hi there,
I can see that DynamicJQueryResourceReference [1] is deprecated in 8.x and removed from master branch.

From the @Deprecated annotation, however, I cannot find how to upgrade my current code: could you please shade some light? Thanks.

Regards.

[1] https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Maxim Solodovnik
2018-10-03 15:40:21 UTC
Permalink
I guess I't time to move to V2/V3
IE 6/7/8/9 is extremely outdated .....
Post by Francesco Chicchiriccò
Hi there,
I can see that DynamicJQueryResourceReference [1] is deprecated in 8.x and
removed from master branch.
current code: could you please shade some light? Thanks.
Regards.
[1]
https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
---------------------------------------------------------------------
--
WBR
Maxim aka solomax
Francesco Chicchiriccò
2018-10-03 15:51:10 UTC
Permalink
Post by Maxim Solodovnik
I guess I't time to move to V2/V3
IE 6/7/8/9 is extremely outdated .....
I agree, but I don't see how this relates to my question: the javadoc for DynamicJQueryResourceReference says that

For IE 6/7/8 jQuery ver. 1.x will be used, for any other browser - ver. 2.x.

Fair enough; now, since the class is deprecated, how am I expected to modify my code? This is what I don't get.

FYI the line is

https://github.com/apache/syncope/blob/master/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java#L182

Regards.
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
Hi there,
I can see that DynamicJQueryResourceReference [1] is deprecated in 8.x and
removed from master branch.
current code: could you please shade some light? Thanks.
Regards.
[1]
https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
---------------------------------------------------------------------
--
WBR
Maxim aka solomax
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Maxim Solodovnik
2018-10-03 15:54:18 UTC
Permalink
Version 8.x will set V2 by default (no specific code is required)
Version 9.x will set V3

You can change this behavior adding
getJavaScriptLibrarySettings().setJQueryReference(JQueryResourceReference.getV3());
to Application.init()
Post by Francesco Chicchiriccò
Post by Maxim Solodovnik
I guess I't time to move to V2/V3
IE 6/7/8/9 is extremely outdated .....
I agree, but I don't see how this relates to my question: the javadoc for
DynamicJQueryResourceReference says that
For IE 6/7/8 jQuery ver. 1.x will be used, for any other browser - ver. 2.x.
Fair enough; now, since the class is deprecated, how am I expected to
modify my code? This is what I don't get.
FYI the line is
https://github.com/apache/syncope/blob/master/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java#L182
Regards.
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
Hi there,
I can see that DynamicJQueryResourceReference [1] is deprecated in 8.x
and
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
removed from master branch.
my
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
current code: could you please shade some light? Thanks.
Regards.
[1]
https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
---------------------------------------------------------------------
--
WBR
Maxim aka solomax
---------------------------------------------------------------------
--
WBR
Maxim aka solomax
Francesco Chicchiriccò
2018-10-03 15:57:31 UTC
Permalink
Post by Maxim Solodovnik
Version 8.x will set V2 by default (no specific code is required)
Version 9.x will set V3
You can change this behavior adding
getJavaScriptLibrarySettings().setJQueryReference(JQueryResourceReference.getV3());
to Application.init()
Thank you very much, now it's clear.
Regards.
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
Post by Maxim Solodovnik
I guess I't time to move to V2/V3
IE 6/7/8/9 is extremely outdated .....
I agree, but I don't see how this relates to my question: the javadoc for
DynamicJQueryResourceReference says that
For IE 6/7/8 jQuery ver. 1.x will be used, for any other browser - ver. 2.x.
Fair enough; now, since the class is deprecated, how am I expected to
modify my code? This is what I don't get.
FYI the line is
https://github.com/apache/syncope/blob/master/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java#L182
Regards.
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
Hi there,
I can see that DynamicJQueryResourceReference [1] is deprecated in 8.x
and
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
removed from master branch.
my
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
current code: could you please shade some light? Thanks.
Regards.
[1]
https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/resource/DynamicJQueryResourceReference.java
Post by Maxim Solodovnik
Post by Francesco Chicchiriccò
---------------------------------------------------------------------
--
WBR
Maxim aka solomax
---------------------------------------------------------------------
--
WBR
Maxim aka solomax
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org

Loading...