You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by francois meillet <fr...@gmail.com> on 2013/07/02 10:39:19 UTC

JQueryResourceReference.INSTANCE has private access

In 6.9.0, JQueryResourceReference.INSTANCE has private access.
So DynamicJQueryResourceReference.INSTANCE is not reachable.


François

RE: JQueryResourceReference.INSTANCE has private access

Posted by Paul Bors <pa...@bors.ws>.
Wicket is Open Source, create a pull request:
https://github.com/apache/wicket/tree/wicket-6.x

:)

-----Original Message-----
From: francois meillet [mailto:francois.meillet@gmail.com] 
Sent: Tuesday, July 02, 2013 8:00 AM
To: users@wicket.apache.org
Subject: Re: JQueryResourceReference.INSTANCE has private access

Hi Martin,

The DynamicJQueryResourceReference's javadoc needs to be updated, as it's
written :

"To use this resource reference do:
app.getJavaScriptLibrarySettings().setJQueryReference(DynamicJQueryResourceR
eference.INSTANCE)"

François



On Tue, Jul 2, 2013 at 12:19 PM, Martin Grigorov
<mg...@apache.org>wrote:

> Hi,
>
> JQueryResourceReference.INSTANCE has been private even before 6.9.0.
> There is org.apache.wicket.resource.JQueryResourceReference#get() 
> which is public.
>
> DynamicJQueryResourceReference has no static members at all. You can 
> use it
> with: new DynamicJQueryResourceReference().
> To be able to use custom versions of jQuery 1.x and 2.x you need to 
> extend DynamicJQueryResourceReference and override #getVersion1() and 
> #getVersion2(). In this case such static field/method will only 
> confuse you.
>
>
> On Tue, Jul 2, 2013 at 11:39 AM, francois meillet < 
> francois.meillet@gmail.com> wrote:
>
> > In 6.9.0, JQueryResourceReference.INSTANCE has private access.
> > So DynamicJQueryResourceReference.INSTANCE is not reachable.
> >
> >
> > François
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: JQueryResourceReference.INSTANCE has private access

Posted by Martin Grigorov <mg...@apache.org>.
Fixed.
Thanks!


On Tue, Jul 2, 2013 at 3:00 PM, francois meillet <francois.meillet@gmail.com
> wrote:

> Hi Martin,
>
> The DynamicJQueryResourceReference's javadoc needs to be updated, as it's
> written :
>
> "To use this resource reference do:
>
> app.getJavaScriptLibrarySettings().setJQueryReference(DynamicJQueryResourceReference.INSTANCE)"
>
> François
>
>
>
> On Tue, Jul 2, 2013 at 12:19 PM, Martin Grigorov <mgrigorov@apache.org
> >wrote:
>
> > Hi,
> >
> > JQueryResourceReference.INSTANCE has been private even before 6.9.0.
> > There is org.apache.wicket.resource.JQueryResourceReference#get() which
> is
> > public.
> >
> > DynamicJQueryResourceReference has no static members at all. You can use
> it
> > with: new DynamicJQueryResourceReference().
> > To be able to use custom versions of jQuery 1.x and 2.x you need to
> > extend DynamicJQueryResourceReference
> > and override #getVersion1() and #getVersion2(). In this case such static
> > field/method will only confuse you.
> >
> >
> > On Tue, Jul 2, 2013 at 11:39 AM, francois meillet <
> > francois.meillet@gmail.com> wrote:
> >
> > > In 6.9.0, JQueryResourceReference.INSTANCE has private access.
> > > So DynamicJQueryResourceReference.INSTANCE is not reachable.
> > >
> > >
> > > François
> > >
> >
>

Re: JQueryResourceReference.INSTANCE has private access

Posted by francois meillet <fr...@gmail.com>.
Hi Martin,

The DynamicJQueryResourceReference's javadoc needs to be updated, as it's
written :

"To use this resource reference do:
app.getJavaScriptLibrarySettings().setJQueryReference(DynamicJQueryResourceReference.INSTANCE)"

François



On Tue, Jul 2, 2013 at 12:19 PM, Martin Grigorov <mg...@apache.org>wrote:

> Hi,
>
> JQueryResourceReference.INSTANCE has been private even before 6.9.0.
> There is org.apache.wicket.resource.JQueryResourceReference#get() which is
> public.
>
> DynamicJQueryResourceReference has no static members at all. You can use it
> with: new DynamicJQueryResourceReference().
> To be able to use custom versions of jQuery 1.x and 2.x you need to
> extend DynamicJQueryResourceReference
> and override #getVersion1() and #getVersion2(). In this case such static
> field/method will only confuse you.
>
>
> On Tue, Jul 2, 2013 at 11:39 AM, francois meillet <
> francois.meillet@gmail.com> wrote:
>
> > In 6.9.0, JQueryResourceReference.INSTANCE has private access.
> > So DynamicJQueryResourceReference.INSTANCE is not reachable.
> >
> >
> > François
> >
>

Re: JQueryResourceReference.INSTANCE has private access

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

JQueryResourceReference.INSTANCE has been private even before 6.9.0.
There is org.apache.wicket.resource.JQueryResourceReference#get() which is
public.

DynamicJQueryResourceReference has no static members at all. You can use it
with: new DynamicJQueryResourceReference().
To be able to use custom versions of jQuery 1.x and 2.x you need to
extend DynamicJQueryResourceReference
and override #getVersion1() and #getVersion2(). In this case such static
field/method will only confuse you.


On Tue, Jul 2, 2013 at 11:39 AM, francois meillet <
francois.meillet@gmail.com> wrote:

> In 6.9.0, JQueryResourceReference.INSTANCE has private access.
> So DynamicJQueryResourceReference.INSTANCE is not reachable.
>
>
> François
>