You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by David Beer <da...@gmail.com> on 2014/08/25 20:37:26 UTC

DataTables Webjars Error

Hi All

I am trying to use DataTables from wicketstuff in order to see if it will
fit my requirements. However I am getting the following error.

19:34:16,427 WARN
 [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
task-22) A ResourceReference wont be created for a resource with key
[scope:
de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
name: webjars/datatables/null/media/js/jquery.dataTables.js; locale: null;
style: null; variation: null] because it cannot be located.

I am using wildfly 8.1.0, and happend to be using wicket-bootstrap, that
works fine.

Any Ideas.

Thanks

David

Re: DataTables Webjars Error

Posted by David Beer <da...@gmail.com>.
Hi Martin,

Yes I use the wicket-bootstrap which seems to work fine without the extra
settings for vfs. If I remove the code to add vfs support DataTables does
not load the css or js. As you can see from the below log output, the
properties in wicket-bootstrap load fine, but those from the dataTables do
not.

21:38:23,882 INFO  [wicket-jquery-selectors] (default task-24) try to get
settings, but WicketJquerySelectors wasn't installed to current
application. Fallback to default settings.
21:38:23,920 INFO  [org.apache.wicket.resource.PropertiesFactory] (default
task-24) Loading properties files from
vfs:/home/dbeer/Programs/wildfly-8.1.0.Final/standalone/deployments/Tansu-Web.war/WEB-INF/lib/wicket-bootstrap-extensions-0.9.6-SNAPSHOT.jar/de/agilecoders/wicket/extensions/markup/html/bootstrap/form/fileinput/BootstrapFileInputField.properties
with loader
org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@2a1b9fe6
21:38:24,086 INFO  [org.apache.wicket.resource.PropertiesFactory] (default
task-24) Loading properties files from
vfs:/home/dbeer/Programs/wildfly-8.1.0.Final/standalone/deployments/Tansu-Web.war/WEB-INF/lib/wicket-core-6.17.0-SNAPSHOT.jar/org/apache/wicket/Application.properties
with loader
org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@2a1b9fe6
21:38:24,091 INFO  [org.apache.wicket.resource.PropertiesFactory] (default
task-24) Loading properties files from
vfs:/home/dbeer/Programs/wildfly-8.1.0.Final/standalone/deployments/Tansu-Web.war/WEB-INF/lib/wicket-extensions-6.17.0-SNAPSHOT.jar/org/apache/wicket/extensions/Initializer.properties
with loader
org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@2a1b9fe6
21:38:24,689 WARN
 [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
task-26) A ResourceReference wont be created for a resource with key
[scope:
de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference;
name: webjars/datatables/null/css/jquery.dataTables.css; locale: null;
style: null; variation: null] because it cannot be located.
21:38:24,695 WARN
 [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
task-27) A ResourceReference wont be created for a resource with key
[scope:
de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
name: webjars/datatables/null/js/jquery.dataTables.js; locale: null; style:
null; variation: null] because it cannot be located.


If I add back the code as follows:

WebjarsSettings settings = new WebjarsSettings();

        // register vfs collector to use webjars on jboss (you don't need
to add maven dependency)
        Set<AssetPathCollector> collectors =
Sets.newHashSet(settings.assetPathCollectors());
        collectors.add(new VfsJarAssetPathCollector());
        settings.assetPathCollectors(collectors.toArray(new
AssetPathCollector[collectors.size()]));
        WicketWebjars.install(this, settings);

All seems to work fine.


On 28 August 2014 21:23, Martin Grigorov <mg...@apache.org> wrote:

> Hi David,
>
> But you use Wicket Bootstrap already, no ?
> It uses Webjars a lot.
> Why do you face the VFS issue now ?
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
>
> On Thu, Aug 28, 2014 at 11:20 PM, David Beer <da...@gmail.com>
> wrote:
>
> > Hi All
> >
> > Got it to work after stumbling across the section on the wicket-webjars
> > github page about adding the settings for vfs.
> >
> > Thanks
> >
> > David
> >
> >
> > On 28 August 2014 21:13, David Beer <da...@gmail.com> wrote:
> >
> >> Hi Martin
> >>
> >> Thanks for the updated DataTables in wicketstuff, this works well under
> >> tomcat, but deployed on wildfly I get the following error still.
> >>
> >> 20:59:56,175 WARN
> >>  [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
> >> task-22) A ResourceReference wont be created for a resource with key
> >> [scope:
> >>
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> >> name: webjars/datatables/null/js/jquery.dataTables.js; locale: null;
> style:
> >> null; variation: null] because it cannot be located.
> >>
> >>
> >> Any thought or help is much appreciated. This is the webjars
> >> initialisation output.
> >>
> >> [wicket-webjars] (default task-1) initialize wicket webjars with given
> >> settings: WebjarsSettings{readFromCacheTimeout=3 seconds,
> >> resourceStreamProvider=ClassLoader, recentVersionPlaceHolder='current',
> >>
> assetPathCollectors=[de.agilecoders.wicket.webjars.collectors.FileAssetPathCollector@6bdf16ff
> ,
> >> de.agilecoders.wicket.webjars.collectors.JarAssetPathCollector@35ef6ad
> ],
> >> webjarsPackage='META-INF.resources.webjars',
> >> webjarsPath='META-INF/resources/webjars', resourcePattern=.*,
> >> webjarsPathPattern=/webjars/([^/]*)/([^/]*)/(.*), useCdnResources=false,
> >> cdnUrl='//cdn.jsdelivr.net:80'}
> >>
> >>
> >> ​
> >>
> >>
> >> On 26 August 2014 19:36, Martin Grigorov <mg...@apache.org> wrote:
> >>
> >>> wicket-6.x is the exact name of the branch
> >>> a PR to master is also welcome! Otherwise I'll try to cherry-pick it
> >>> (sometimes this doesn't work smoothly and I have to do it manually).
> >>>
> >>> Martin Grigorov
> >>> Wicket Training and Consulting
> >>> https://twitter.com/mtgrigorov
> >>>
> >>>
> >>> On Tue, Aug 26, 2014 at 9:33 PM, David Beer <da...@gmail.com>
> >>> wrote:
> >>>
> >>> > Hi Martin
> >>> >
> >>> > Thanks for spotting that will have a look. PR against 6.0x branch?
> >>> >
> >>> > Thanks
> >>> >
> >>> > David
> >>> >
> >>> >
> >>> >
> >>> > On 26 August 2014 19:15, Martin Grigorov <mg...@apache.org>
> wrote:
> >>> >
> >>> > > OK.
> >>> > >
> >>> > > I see 1.10.2 has changed the way it packs the css/js resources -
> >>> there is
> >>> > > no 'media' folder anymore.
> >>> > > Please try it and send Pull Request if it works.
> >>> > > Thanks!
> >>> > >
> >>> > > Martin Grigorov
> >>> > > Wicket Training and Consulting
> >>> > > https://twitter.com/mtgrigorov
> >>> > >
> >>> > >
> >>> > > On Tue, Aug 26, 2014 at 9:10 PM, David Beer <
> david.m.beer@gmail.com>
> >>> > > wrote:
> >>> > >
> >>> > > > Hi Martin
> >>> > > >
> >>> > > > I am using the DataTables module from wicketstuff. I am simply
> >>> > installing
> >>> > > > webjars with WicketWebjars.install(this);
> >>> > > >
> >>> > > > This where the reference is made to the DataTables css file,
> >>> > > >
> >>> > > >
> >>> > >
> >>> >
> >>>
> https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java
> >>> > > >
> >>> > > > javascript reference is the same.
> >>> > > >
> >>> > > > I have simply copied the example code.
> >>> > > >
> >>> > > > Thanks
> >>> > > >
> >>> > > > David
> >>> > > >
> >>> > > >
> >>> > > > On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org>
> >>> wrote:
> >>> > > >
> >>> > > > > Hi,
> >>> > > > >
> >>> > > > > How do you use the webjar ?
> >>> > > > > Show us the code of the resource reference's constructor.
> >>> > > > >
> >>> > > > > Martin Grigorov
> >>> > > > > Wicket Training and Consulting
> >>> > > > > https://twitter.com/mtgrigorov
> >>> > > > >
> >>> > > > >
> >>> > > > > On Mon, Aug 25, 2014 at 9:37 PM, David Beer <
> >>> david.m.beer@gmail.com>
> >>> > > > > wrote:
> >>> > > > >
> >>> > > > > > Hi All
> >>> > > > > >
> >>> > > > > > I am trying to use DataTables from wicketstuff in order to
> see
> >>> if
> >>> > it
> >>> > > > will
> >>> > > > > > fit my requirements. However I am getting the following
> error.
> >>> > > > > >
> >>> > > > > > 19:34:16,427 WARN
> >>> > > > > >
> [org.apache.wicket.request.resource.ResourceReferenceRegistry]
> >>> > > > (default
> >>> > > > > > task-22) A ResourceReference wont be created for a resource
> >>> with
> >>> > key
> >>> > > > > > [scope:
> >>> > > > > >
> >>> > > > > >
> >>> > > > >
> >>> > > >
> >>> > >
> >>> >
> >>>
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> >>> > > > > > name: webjars/datatables/null/media/js/jquery.dataTables.js;
> >>> > locale:
> >>> > > > > null;
> >>> > > > > > style: null; variation: null] because it cannot be located.
> >>> > > > > >
> >>> > > > > > I am using wildfly 8.1.0, and happend to be using
> >>> wicket-bootstrap,
> >>> > > > that
> >>> > > > > > works fine.
> >>> > > > > >
> >>> > > > > > Any Ideas.
> >>> > > > > >
> >>> > > > > > Thanks
> >>> > > > > >
> >>> > > > > > David
> >>> > > > > >
> >>> > > > >
> >>> > > >
> >>> > >
> >>> >
> >>>
> >>
> >>
> >
>

Re: DataTables Webjars Error

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

But you use Wicket Bootstrap already, no ?
It uses Webjars a lot.
Why do you face the VFS issue now ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Aug 28, 2014 at 11:20 PM, David Beer <da...@gmail.com> wrote:

> Hi All
>
> Got it to work after stumbling across the section on the wicket-webjars
> github page about adding the settings for vfs.
>
> Thanks
>
> David
>
>
> On 28 August 2014 21:13, David Beer <da...@gmail.com> wrote:
>
>> Hi Martin
>>
>> Thanks for the updated DataTables in wicketstuff, this works well under
>> tomcat, but deployed on wildfly I get the following error still.
>>
>> 20:59:56,175 WARN
>>  [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
>> task-22) A ResourceReference wont be created for a resource with key
>> [scope:
>> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
>> name: webjars/datatables/null/js/jquery.dataTables.js; locale: null; style:
>> null; variation: null] because it cannot be located.
>>
>>
>> Any thought or help is much appreciated. This is the webjars
>> initialisation output.
>>
>> [wicket-webjars] (default task-1) initialize wicket webjars with given
>> settings: WebjarsSettings{readFromCacheTimeout=3 seconds,
>> resourceStreamProvider=ClassLoader, recentVersionPlaceHolder='current',
>> assetPathCollectors=[de.agilecoders.wicket.webjars.collectors.FileAssetPathCollector@6bdf16ff,
>> de.agilecoders.wicket.webjars.collectors.JarAssetPathCollector@35ef6ad],
>> webjarsPackage='META-INF.resources.webjars',
>> webjarsPath='META-INF/resources/webjars', resourcePattern=.*,
>> webjarsPathPattern=/webjars/([^/]*)/([^/]*)/(.*), useCdnResources=false,
>> cdnUrl='//cdn.jsdelivr.net:80'}
>>
>>
>> ​
>>
>>
>> On 26 August 2014 19:36, Martin Grigorov <mg...@apache.org> wrote:
>>
>>> wicket-6.x is the exact name of the branch
>>> a PR to master is also welcome! Otherwise I'll try to cherry-pick it
>>> (sometimes this doesn't work smoothly and I have to do it manually).
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>>
>>>
>>> On Tue, Aug 26, 2014 at 9:33 PM, David Beer <da...@gmail.com>
>>> wrote:
>>>
>>> > Hi Martin
>>> >
>>> > Thanks for spotting that will have a look. PR against 6.0x branch?
>>> >
>>> > Thanks
>>> >
>>> > David
>>> >
>>> >
>>> >
>>> > On 26 August 2014 19:15, Martin Grigorov <mg...@apache.org> wrote:
>>> >
>>> > > OK.
>>> > >
>>> > > I see 1.10.2 has changed the way it packs the css/js resources -
>>> there is
>>> > > no 'media' folder anymore.
>>> > > Please try it and send Pull Request if it works.
>>> > > Thanks!
>>> > >
>>> > > Martin Grigorov
>>> > > Wicket Training and Consulting
>>> > > https://twitter.com/mtgrigorov
>>> > >
>>> > >
>>> > > On Tue, Aug 26, 2014 at 9:10 PM, David Beer <da...@gmail.com>
>>> > > wrote:
>>> > >
>>> > > > Hi Martin
>>> > > >
>>> > > > I am using the DataTables module from wicketstuff. I am simply
>>> > installing
>>> > > > webjars with WicketWebjars.install(this);
>>> > > >
>>> > > > This where the reference is made to the DataTables css file,
>>> > > >
>>> > > >
>>> > >
>>> >
>>> https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java
>>> > > >
>>> > > > javascript reference is the same.
>>> > > >
>>> > > > I have simply copied the example code.
>>> > > >
>>> > > > Thanks
>>> > > >
>>> > > > David
>>> > > >
>>> > > >
>>> > > > On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org>
>>> wrote:
>>> > > >
>>> > > > > Hi,
>>> > > > >
>>> > > > > How do you use the webjar ?
>>> > > > > Show us the code of the resource reference's constructor.
>>> > > > >
>>> > > > > Martin Grigorov
>>> > > > > Wicket Training and Consulting
>>> > > > > https://twitter.com/mtgrigorov
>>> > > > >
>>> > > > >
>>> > > > > On Mon, Aug 25, 2014 at 9:37 PM, David Beer <
>>> david.m.beer@gmail.com>
>>> > > > > wrote:
>>> > > > >
>>> > > > > > Hi All
>>> > > > > >
>>> > > > > > I am trying to use DataTables from wicketstuff in order to see
>>> if
>>> > it
>>> > > > will
>>> > > > > > fit my requirements. However I am getting the following error.
>>> > > > > >
>>> > > > > > 19:34:16,427 WARN
>>> > > > > >  [org.apache.wicket.request.resource.ResourceReferenceRegistry]
>>> > > > (default
>>> > > > > > task-22) A ResourceReference wont be created for a resource
>>> with
>>> > key
>>> > > > > > [scope:
>>> > > > > >
>>> > > > > >
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
>>> > > > > > name: webjars/datatables/null/media/js/jquery.dataTables.js;
>>> > locale:
>>> > > > > null;
>>> > > > > > style: null; variation: null] because it cannot be located.
>>> > > > > >
>>> > > > > > I am using wildfly 8.1.0, and happend to be using
>>> wicket-bootstrap,
>>> > > > that
>>> > > > > > works fine.
>>> > > > > >
>>> > > > > > Any Ideas.
>>> > > > > >
>>> > > > > > Thanks
>>> > > > > >
>>> > > > > > David
>>> > > > > >
>>> > > > >
>>> > > >
>>> > >
>>> >
>>>
>>
>>
>

Re: DataTables Webjars Error

Posted by David Beer <da...@gmail.com>.
Hi All

Got it to work after stumbling across the section on the wicket-webjars
github page about adding the settings for vfs.

Thanks

David


On 28 August 2014 21:13, David Beer <da...@gmail.com> wrote:

> Hi Martin
>
> Thanks for the updated DataTables in wicketstuff, this works well under
> tomcat, but deployed on wildfly I get the following error still.
>
> 20:59:56,175 WARN
>  [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
> task-22) A ResourceReference wont be created for a resource with key
> [scope:
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> name: webjars/datatables/null/js/jquery.dataTables.js; locale: null; style:
> null; variation: null] because it cannot be located.
>
>
> Any thought or help is much appreciated. This is the webjars
> initialisation output.
>
> [wicket-webjars] (default task-1) initialize wicket webjars with given
> settings: WebjarsSettings{readFromCacheTimeout=3 seconds,
> resourceStreamProvider=ClassLoader, recentVersionPlaceHolder='current',
> assetPathCollectors=[de.agilecoders.wicket.webjars.collectors.FileAssetPathCollector@6bdf16ff,
> de.agilecoders.wicket.webjars.collectors.JarAssetPathCollector@35ef6ad],
> webjarsPackage='META-INF.resources.webjars',
> webjarsPath='META-INF/resources/webjars', resourcePattern=.*,
> webjarsPathPattern=/webjars/([^/]*)/([^/]*)/(.*), useCdnResources=false,
> cdnUrl='//cdn.jsdelivr.net:80'}
>
>
> ​
>
>
> On 26 August 2014 19:36, Martin Grigorov <mg...@apache.org> wrote:
>
>> wicket-6.x is the exact name of the branch
>> a PR to master is also welcome! Otherwise I'll try to cherry-pick it
>> (sometimes this doesn't work smoothly and I have to do it manually).
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>>
>> On Tue, Aug 26, 2014 at 9:33 PM, David Beer <da...@gmail.com>
>> wrote:
>>
>> > Hi Martin
>> >
>> > Thanks for spotting that will have a look. PR against 6.0x branch?
>> >
>> > Thanks
>> >
>> > David
>> >
>> >
>> >
>> > On 26 August 2014 19:15, Martin Grigorov <mg...@apache.org> wrote:
>> >
>> > > OK.
>> > >
>> > > I see 1.10.2 has changed the way it packs the css/js resources -
>> there is
>> > > no 'media' folder anymore.
>> > > Please try it and send Pull Request if it works.
>> > > Thanks!
>> > >
>> > > Martin Grigorov
>> > > Wicket Training and Consulting
>> > > https://twitter.com/mtgrigorov
>> > >
>> > >
>> > > On Tue, Aug 26, 2014 at 9:10 PM, David Beer <da...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hi Martin
>> > > >
>> > > > I am using the DataTables module from wicketstuff. I am simply
>> > installing
>> > > > webjars with WicketWebjars.install(this);
>> > > >
>> > > > This where the reference is made to the DataTables css file,
>> > > >
>> > > >
>> > >
>> >
>> https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java
>> > > >
>> > > > javascript reference is the same.
>> > > >
>> > > > I have simply copied the example code.
>> > > >
>> > > > Thanks
>> > > >
>> > > > David
>> > > >
>> > > >
>> > > > On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org>
>> wrote:
>> > > >
>> > > > > Hi,
>> > > > >
>> > > > > How do you use the webjar ?
>> > > > > Show us the code of the resource reference's constructor.
>> > > > >
>> > > > > Martin Grigorov
>> > > > > Wicket Training and Consulting
>> > > > > https://twitter.com/mtgrigorov
>> > > > >
>> > > > >
>> > > > > On Mon, Aug 25, 2014 at 9:37 PM, David Beer <
>> david.m.beer@gmail.com>
>> > > > > wrote:
>> > > > >
>> > > > > > Hi All
>> > > > > >
>> > > > > > I am trying to use DataTables from wicketstuff in order to see
>> if
>> > it
>> > > > will
>> > > > > > fit my requirements. However I am getting the following error.
>> > > > > >
>> > > > > > 19:34:16,427 WARN
>> > > > > >  [org.apache.wicket.request.resource.ResourceReferenceRegistry]
>> > > > (default
>> > > > > > task-22) A ResourceReference wont be created for a resource with
>> > key
>> > > > > > [scope:
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
>> > > > > > name: webjars/datatables/null/media/js/jquery.dataTables.js;
>> > locale:
>> > > > > null;
>> > > > > > style: null; variation: null] because it cannot be located.
>> > > > > >
>> > > > > > I am using wildfly 8.1.0, and happend to be using
>> wicket-bootstrap,
>> > > > that
>> > > > > > works fine.
>> > > > > >
>> > > > > > Any Ideas.
>> > > > > >
>> > > > > > Thanks
>> > > > > >
>> > > > > > David
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>

Re: DataTables Webjars Error

Posted by David Beer <da...@gmail.com>.
Hi Martin

Thanks for the updated DataTables in wicketstuff, this works well under
tomcat, but deployed on wildfly I get the following error still.

20:59:56,175 WARN
 [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
task-22) A ResourceReference wont be created for a resource with key
[scope:
de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
name: webjars/datatables/null/js/jquery.dataTables.js; locale: null; style:
null; variation: null] because it cannot be located.


Any thought or help is much appreciated. This is the webjars initialisation
output.

[wicket-webjars] (default task-1) initialize wicket webjars with given
settings: WebjarsSettings{readFromCacheTimeout=3 seconds,
resourceStreamProvider=ClassLoader, recentVersionPlaceHolder='current',
assetPathCollectors=[de.agilecoders.wicket.webjars.collectors.FileAssetPathCollector@6bdf16ff,
de.agilecoders.wicket.webjars.collectors.JarAssetPathCollector@35ef6ad],
webjarsPackage='META-INF.resources.webjars',
webjarsPath='META-INF/resources/webjars', resourcePattern=.*,
webjarsPathPattern=/webjars/([^/]*)/([^/]*)/(.*), useCdnResources=false,
cdnUrl='//cdn.jsdelivr.net:80'}


​


On 26 August 2014 19:36, Martin Grigorov <mg...@apache.org> wrote:

> wicket-6.x is the exact name of the branch
> a PR to master is also welcome! Otherwise I'll try to cherry-pick it
> (sometimes this doesn't work smoothly and I have to do it manually).
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
>
> On Tue, Aug 26, 2014 at 9:33 PM, David Beer <da...@gmail.com>
> wrote:
>
> > Hi Martin
> >
> > Thanks for spotting that will have a look. PR against 6.0x branch?
> >
> > Thanks
> >
> > David
> >
> >
> >
> > On 26 August 2014 19:15, Martin Grigorov <mg...@apache.org> wrote:
> >
> > > OK.
> > >
> > > I see 1.10.2 has changed the way it packs the css/js resources - there
> is
> > > no 'media' folder anymore.
> > > Please try it and send Pull Request if it works.
> > > Thanks!
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > >
> > > On Tue, Aug 26, 2014 at 9:10 PM, David Beer <da...@gmail.com>
> > > wrote:
> > >
> > > > Hi Martin
> > > >
> > > > I am using the DataTables module from wicketstuff. I am simply
> > installing
> > > > webjars with WicketWebjars.install(this);
> > > >
> > > > This where the reference is made to the DataTables css file,
> > > >
> > > >
> > >
> >
> https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java
> > > >
> > > > javascript reference is the same.
> > > >
> > > > I have simply copied the example code.
> > > >
> > > > Thanks
> > > >
> > > > David
> > > >
> > > >
> > > > On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org>
> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > How do you use the webjar ?
> > > > > Show us the code of the resource reference's constructor.
> > > > >
> > > > > Martin Grigorov
> > > > > Wicket Training and Consulting
> > > > > https://twitter.com/mtgrigorov
> > > > >
> > > > >
> > > > > On Mon, Aug 25, 2014 at 9:37 PM, David Beer <
> david.m.beer@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi All
> > > > > >
> > > > > > I am trying to use DataTables from wicketstuff in order to see if
> > it
> > > > will
> > > > > > fit my requirements. However I am getting the following error.
> > > > > >
> > > > > > 19:34:16,427 WARN
> > > > > >  [org.apache.wicket.request.resource.ResourceReferenceRegistry]
> > > > (default
> > > > > > task-22) A ResourceReference wont be created for a resource with
> > key
> > > > > > [scope:
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> > > > > > name: webjars/datatables/null/media/js/jquery.dataTables.js;
> > locale:
> > > > > null;
> > > > > > style: null; variation: null] because it cannot be located.
> > > > > >
> > > > > > I am using wildfly 8.1.0, and happend to be using
> wicket-bootstrap,
> > > > that
> > > > > > works fine.
> > > > > >
> > > > > > Any Ideas.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > David
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: DataTables Webjars Error

Posted by Martin Grigorov <mg...@apache.org>.
wicket-6.x is the exact name of the branch
a PR to master is also welcome! Otherwise I'll try to cherry-pick it
(sometimes this doesn't work smoothly and I have to do it manually).

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Tue, Aug 26, 2014 at 9:33 PM, David Beer <da...@gmail.com> wrote:

> Hi Martin
>
> Thanks for spotting that will have a look. PR against 6.0x branch?
>
> Thanks
>
> David
>
>
>
> On 26 August 2014 19:15, Martin Grigorov <mg...@apache.org> wrote:
>
> > OK.
> >
> > I see 1.10.2 has changed the way it packs the css/js resources - there is
> > no 'media' folder anymore.
> > Please try it and send Pull Request if it works.
> > Thanks!
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> >
> > On Tue, Aug 26, 2014 at 9:10 PM, David Beer <da...@gmail.com>
> > wrote:
> >
> > > Hi Martin
> > >
> > > I am using the DataTables module from wicketstuff. I am simply
> installing
> > > webjars with WicketWebjars.install(this);
> > >
> > > This where the reference is made to the DataTables css file,
> > >
> > >
> >
> https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java
> > >
> > > javascript reference is the same.
> > >
> > > I have simply copied the example code.
> > >
> > > Thanks
> > >
> > > David
> > >
> > >
> > > On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org> wrote:
> > >
> > > > Hi,
> > > >
> > > > How do you use the webjar ?
> > > > Show us the code of the resource reference's constructor.
> > > >
> > > > Martin Grigorov
> > > > Wicket Training and Consulting
> > > > https://twitter.com/mtgrigorov
> > > >
> > > >
> > > > On Mon, Aug 25, 2014 at 9:37 PM, David Beer <da...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi All
> > > > >
> > > > > I am trying to use DataTables from wicketstuff in order to see if
> it
> > > will
> > > > > fit my requirements. However I am getting the following error.
> > > > >
> > > > > 19:34:16,427 WARN
> > > > >  [org.apache.wicket.request.resource.ResourceReferenceRegistry]
> > > (default
> > > > > task-22) A ResourceReference wont be created for a resource with
> key
> > > > > [scope:
> > > > >
> > > > >
> > > >
> > >
> >
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> > > > > name: webjars/datatables/null/media/js/jquery.dataTables.js;
> locale:
> > > > null;
> > > > > style: null; variation: null] because it cannot be located.
> > > > >
> > > > > I am using wildfly 8.1.0, and happend to be using wicket-bootstrap,
> > > that
> > > > > works fine.
> > > > >
> > > > > Any Ideas.
> > > > >
> > > > > Thanks
> > > > >
> > > > > David
> > > > >
> > > >
> > >
> >
>

Re: DataTables Webjars Error

Posted by David Beer <da...@gmail.com>.
Hi Martin

Thanks for spotting that will have a look. PR against 6.0x branch?

Thanks

David



On 26 August 2014 19:15, Martin Grigorov <mg...@apache.org> wrote:

> OK.
>
> I see 1.10.2 has changed the way it packs the css/js resources - there is
> no 'media' folder anymore.
> Please try it and send Pull Request if it works.
> Thanks!
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
>
> On Tue, Aug 26, 2014 at 9:10 PM, David Beer <da...@gmail.com>
> wrote:
>
> > Hi Martin
> >
> > I am using the DataTables module from wicketstuff. I am simply installing
> > webjars with WicketWebjars.install(this);
> >
> > This where the reference is made to the DataTables css file,
> >
> >
> https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java
> >
> > javascript reference is the same.
> >
> > I have simply copied the example code.
> >
> > Thanks
> >
> > David
> >
> >
> > On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org> wrote:
> >
> > > Hi,
> > >
> > > How do you use the webjar ?
> > > Show us the code of the resource reference's constructor.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > >
> > > On Mon, Aug 25, 2014 at 9:37 PM, David Beer <da...@gmail.com>
> > > wrote:
> > >
> > > > Hi All
> > > >
> > > > I am trying to use DataTables from wicketstuff in order to see if it
> > will
> > > > fit my requirements. However I am getting the following error.
> > > >
> > > > 19:34:16,427 WARN
> > > >  [org.apache.wicket.request.resource.ResourceReferenceRegistry]
> > (default
> > > > task-22) A ResourceReference wont be created for a resource with key
> > > > [scope:
> > > >
> > > >
> > >
> >
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> > > > name: webjars/datatables/null/media/js/jquery.dataTables.js; locale:
> > > null;
> > > > style: null; variation: null] because it cannot be located.
> > > >
> > > > I am using wildfly 8.1.0, and happend to be using wicket-bootstrap,
> > that
> > > > works fine.
> > > >
> > > > Any Ideas.
> > > >
> > > > Thanks
> > > >
> > > > David
> > > >
> > >
> >
>

Re: DataTables Webjars Error

Posted by Martin Grigorov <mg...@apache.org>.
OK.

I see 1.10.2 has changed the way it packs the css/js resources - there is
no 'media' folder anymore.
Please try it and send Pull Request if it works.
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Tue, Aug 26, 2014 at 9:10 PM, David Beer <da...@gmail.com> wrote:

> Hi Martin
>
> I am using the DataTables module from wicketstuff. I am simply installing
> webjars with WicketWebjars.install(this);
>
> This where the reference is made to the DataTables css file,
>
> https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java
>
> javascript reference is the same.
>
> I have simply copied the example code.
>
> Thanks
>
> David
>
>
> On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org> wrote:
>
> > Hi,
> >
> > How do you use the webjar ?
> > Show us the code of the resource reference's constructor.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> >
> > On Mon, Aug 25, 2014 at 9:37 PM, David Beer <da...@gmail.com>
> > wrote:
> >
> > > Hi All
> > >
> > > I am trying to use DataTables from wicketstuff in order to see if it
> will
> > > fit my requirements. However I am getting the following error.
> > >
> > > 19:34:16,427 WARN
> > >  [org.apache.wicket.request.resource.ResourceReferenceRegistry]
> (default
> > > task-22) A ResourceReference wont be created for a resource with key
> > > [scope:
> > >
> > >
> >
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> > > name: webjars/datatables/null/media/js/jquery.dataTables.js; locale:
> > null;
> > > style: null; variation: null] because it cannot be located.
> > >
> > > I am using wildfly 8.1.0, and happend to be using wicket-bootstrap,
> that
> > > works fine.
> > >
> > > Any Ideas.
> > >
> > > Thanks
> > >
> > > David
> > >
> >
>

Re: DataTables Webjars Error

Posted by David Beer <da...@gmail.com>.
Hi Martin

I am using the DataTables module from wicketstuff. I am simply installing
webjars with WicketWebjars.install(this);

This where the reference is made to the DataTables css file,
https://github.com/wicketstuff/core/blob/core-6.16.0/jdk-1.6-parent/datatables-parent/datatables/src/main/java/org/wicketstuff/datatables/DataTablesCssReference.java

javascript reference is the same.

I have simply copied the example code.

Thanks

David


On 26 August 2014 18:02, Martin Grigorov <mg...@apache.org> wrote:

> Hi,
>
> How do you use the webjar ?
> Show us the code of the resource reference's constructor.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
>
> On Mon, Aug 25, 2014 at 9:37 PM, David Beer <da...@gmail.com>
> wrote:
>
> > Hi All
> >
> > I am trying to use DataTables from wicketstuff in order to see if it will
> > fit my requirements. However I am getting the following error.
> >
> > 19:34:16,427 WARN
> >  [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
> > task-22) A ResourceReference wont be created for a resource with key
> > [scope:
> >
> >
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> > name: webjars/datatables/null/media/js/jquery.dataTables.js; locale:
> null;
> > style: null; variation: null] because it cannot be located.
> >
> > I am using wildfly 8.1.0, and happend to be using wicket-bootstrap, that
> > works fine.
> >
> > Any Ideas.
> >
> > Thanks
> >
> > David
> >
>

Re: DataTables Webjars Error

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

How do you use the webjar ?
Show us the code of the resource reference's constructor.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Mon, Aug 25, 2014 at 9:37 PM, David Beer <da...@gmail.com> wrote:

> Hi All
>
> I am trying to use DataTables from wicketstuff in order to see if it will
> fit my requirements. However I am getting the following error.
>
> 19:34:16,427 WARN
>  [org.apache.wicket.request.resource.ResourceReferenceRegistry] (default
> task-22) A ResourceReference wont be created for a resource with key
> [scope:
>
> de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
> name: webjars/datatables/null/media/js/jquery.dataTables.js; locale: null;
> style: null; variation: null] because it cannot be located.
>
> I am using wildfly 8.1.0, and happend to be using wicket-bootstrap, that
> works fine.
>
> Any Ideas.
>
> Thanks
>
> David
>