Hi,

I don't believe we we're getting any errors in 6.5.0. Wro4j works for our
designers to allow them to add files without referencing java code.
For the moment I added the various wicket javascript (minus the debugbar)
to a bundle so its loaded as one file, I will look more into
resourceDecoration for future reference.

thanks.

Fergal.



On 8 May 2014 07:09, Martin Grigorov <mgrigo...@apache.org> wrote:

> Hi,
>
> What is the outcome of using new UrlResourceReference(Url.parse("")) ?
> I have never thought of doing this.
> I think it will produce <script src=""/>, no ?
>
> The only solution I see at the moment is to use IHeaderResponseDecorator
> and just skip these references.
> See
>
> https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/resourcedecoration/ResourceDecorationApplication.java#L55for
> inspiration.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Wed, May 7, 2014 at 9:56 AM, Fergal Keating <
> fergal.keat...@directski.com
> > wrote:
>
> > Hi,
> >
> > I have discovered that the issue relates to how we are overriding the
> > default Wicket javascript.
> >
> > We are adding the following to Application#init()
> >
> >                 addResourceReplacement((JavaScriptResourceReference)
> >
> >
> DirectSkiApplication.get().getJavaScriptLibrarySettings().getJQueryReference(),
> > new UrlResourceReference(Url.parse("")));
> >  addResourceReplacement((JavaScriptResourceReference)
> >
> >
> DirectSkiApplication.get().getJavaScriptLibrarySettings().getWicketEventReference(),
> > new UrlResourceReference(Url.parse("")));
> >  addResourceReplacement((JavaScriptResourceReference)
> >
> >
> DirectSkiApplication.get().getJavaScriptLibrarySettings().getWicketAjaxReference(),
> > new UrlResourceReference(Url.parse("")));
> >  addResourceReplacement((JavaScriptResourceReference)
> >
> >
> DirectSkiApplication.get().getJavaScriptLibrarySettings().getWicketAjaxDebugReference(),new
> > UrlResourceReference(Url.parse("")))
> >
> >
> > We are then adding the correct resources as a bundle through wro4j.xml.
> (it
> > was probably overkill but trying to load as a single bundled cached
> > request.
> >
> > This worked in wicket 6.5.0 without throwing an error.
> >
> > What is the simplest way i can achieve the same functionality ?
> >
> >
> > On 6 May 2014 20:29, Martin Grigorov <mgrigo...@apache.org> wrote:
> >
> > > Hi,
> > >
> > > If you are able to reproduce this in a quickstart (mini) app then
> please
> > > attach it to a ticket at https://issues.apache.org/jira/browse/WICKET
> > > Thanks!
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > >
> > >
> > > On Tue, May 6, 2014 at 5:43 PM, Fergal Keating <
> > > fergal.keat...@directski.com
> > > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I was attempting to upgrade to Wicket 6.15.0 from 6.5.0 in order to
> use
> > > >
> > > > <wicket:header-items/>
> > > >
> > > > As described in
> > > > http://wicketinaction.com/2014/03/header-contributions-positioning/
> > > >
> > > > This should nicely solve an issue I'm currently having in the HTML
> > rather
> > > > than the Java where i am using WRO4J to minimise and join javascript
> > and
> > > > CSS .  I am also using wicket-facebook 6.15.0.
> > > >
> > > > I have run into a problem when i run my application. I get an error
> > after
> > > > facebooksdk.java line 99 The following error is thrown.
> > > >
> > > > org.apache.wicket.resource.CircularDependencyException: Circular
> > > > dependency detected in the dependency chain
> > > > [JavaScriptReferenceHeaderItem(scope: org.apache.wicket.Application;
> > > > name: ; locale: null; style: null; variation: null, null)].
> > > > JavaScriptReferenceHeaderItem(scope: org.apache.wicket.Application;
> > > > name: ; locale: null; style: null; variation: null, null) is already
> > > > in the chain.
> > > >
> > > >
> > > > It seems that for some reason a null reference is being added to the
> > > > header.
> > > >
> > > > I do not get this error in 6.5.0.
> > > >
> > > > Is there some obvious change i am missing between the versions that
> can
> > > > point me in the right direction?
> > > >
> > > >
> > > >
> > > > --
> > > > Fergal Keating
> > > >
> > >
> >
> >
> >
> > --
> > Fergal Keating
> > Senior Software Engineer
> > -----------------------------------------------
> > e. fergal.keat...@directski.com
> > p. NA
> >
> > *Topflight Travel Group*
> > winter: www.directski.com www.topflight.ie www.skibeat.co.uk
> > www.skimcneill.com
> > summer: www.topflight.ie, www.blis <http://www.blisscamping.co.uk>
> > scamping.co.uk <http://www.blisscamping.co.uk>
> >
>



-- 
Fergal Keating
Senior Software Engineer
-----------------------------------------------
e. fergal.keat...@directski.com
p. NA

*Topflight Travel Group*
winter: www.directski.com www.topflight.ie www.skibeat.co.uk
www.skimcneill.com
summer: www.topflight.ie, www.blis <http://www.blisscamping.co.uk>
scamping.co.uk <http://www.blisscamping.co.uk>

Reply via email to