That shouldn't be a problem, you can access that parameter
within AssetPathConverter (I'm assuming you are using a constant or a
symbol for the googleMapsKey). It might seem complicated, but in the long
run it should be worth it, since this override provides a way to import
libraries from CDN.

On Sat, Sep 15, 2012 at 10:25 PM, sommeralex <alexander.som...@gmail.com>wrote:

> thx.. but seems complicated, because my asset also is taking parameters:
>
>
> <script type="text/javascript" src="
>
> http://maps.googleapis.com/maps/api/js?libraries=geometry&amp;key=${googleMapsKey}&amp;sensor=false
> ">
>
> 2012/9/15 Dusko Jovanovski [via Tapestry] <
> ml-node+s1045711n5716314...@n5.nabble.com>
>
> > Just read your question again (on nabble, the script tag was lost in the
> > email), and I realized that's not gonna help.
> > Take a look at this thread:
> >
> >
> http://tapestry.1045711.n5.nabble.com/Referencing-external-assets-td4346215.html
> >
> >
> > Basically, you need to override AssetPathConverter, and then use @Import
> > for the google maps library instead of the import via script.
> >
> > On Sat, Sep 15, 2012 at 10:05 PM, Dusko Jovanovski <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716314&i=0>>wrote:
> >
> >
> > > You can use the @Import annotation on render methods. Try this:
> > > @Import(library = {"context:js/OverlappingMarkerSpiderfier.js"})
> > > void afterRender(){}
> > >
> > >
> > > On Sat, Sep 15, 2012 at 7:12 PM, sommeralex <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716314&i=1>>wrote:
> >
> > >
> > >> Hi!
> > >>
> > >> I need to ensure that google maps api 3 is loaded before
> > >> OverlappingMarkerSpiderfier ( OverlappingMarkerSpiderfier is a js lib
> > >> helping to solve the multiple marker problem with same locations)
> > >>
> > >> The  OverlappingMarkerSpiderfier.js is in my ressources folder, and
> > >> normally
> > >> i would just inject it via @Import(library =
> > >> {"context:js/OverlappingMarkerSpiderfier.js",})
> > >>
> > >> the point is, that the overlapping marker is always loaded then BEFORE
> > >> google maps api loaded. how can i change the order, that
> > >> OverlappingMarkerSpiderfier.js is loaded after google maps, which is
> > >> loaded
> > >> via the script tag:
> > >>
> > >>
> > >>
> > >> thx
> > >>
> > >>
> > >>
> > >> --
> > >> View this message in context:
> > >>
> >
> http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309.html
> > >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716314&i=2>
> > >> For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716314&i=3>
> > >>
> > >>
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309p5716314.html
> >  To unsubscribe from loading .js and <scripts> in a specific order, click
> > here<
> http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716309&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNjMwOXwxMDUzMzQxMzM4
> >
> > .
> > NAML<
> http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309p5716315.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>

Reply via email to