RE: Configurable Resource's url (use CDN or not)

2012-10-03 Thread David Loidolt
Dear All,

I'm currently experiencing some problems using SimpleCDN in Wicket 1.5.4 in
combination with mountResource for image/texttemplate/css resources. 
When used, the according resources are then no longer resolved via CDN but
served from the origin host as relative paths.

Works:
-- Inside WebPage constructor
add(new Image(Logo,new
PackageResourceReference(ResourcesImagesScope.class, images/logo.png)));

-- Markup


-- Result
https://abc123.cloudfront.net/wicket/resource/com.my.package.resources.images.ResourcesImagesScope/logo-ver-1340006161412.png
 

Does not work:

-- Inside WebPage constructor
add(new Image(Logo,new
PackageResourceReference(ResourcesImagesScope.class, images/logo.png)));

-- Inside init() of extended WebApplication (for a nice url-path)
mountResource(images/images/logo.png, new
PackageResourceReference(ResourcesImagesScope.class, images/logo.png));

-- Result
/images/logo-ver-1349261626000.png  (--
https://www.mydomain.com/images/logo-ver-1349261626000.png)


So as you can see, as soon as I remove the mountResource the image is
resolved correctly.
Also when I set a break point insides SimpleUrl mapUrl function, the
resource never shows up if mountResource has been called for it bevore.

Any ideas on why mountResource is causing this impact?

Thanks,
Cheers, David



-
“In the middle of difficulty lies opportunity.” Albert Einstein 
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Configurable-Resource-s-url-use-CDN-or-not-tp3899388p4652638.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Configurable Resource's url (use CDN or not)

2012-01-30 Thread willo
Dear all,

Looks like molindo isn't going to upgrade their solution to wicket 1.5.
Is there something build into wicket 1.5 where serving resources via CDN's
is easily done?

Many thanks
Thomas

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Configurable-Resource-s-url-use-CDN-or-not-tp3899388p4341283.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Configurable Resource's url (use CDN or not)

2012-01-30 Thread Martin Grigorov
Hi,

See 
http://blog.55minutes.com/post/16529577810/simplecdn-and-the-newly-released-fiftyfive-wicket-3-2


On Mon, Jan 30, 2012 at 5:30 PM, willo wi...@test.at wrote:
 Dear all,

 Looks like molindo isn't going to upgrade their solution to wicket 1.5.
 Is there something build into wicket 1.5 where serving resources via CDN's
 is easily done?

 Many thanks
 Thomas

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Configurable-Resource-s-url-use-CDN-or-not-tp3899388p4341283.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



RE: Configurable Resource's url (use CDN or not)

2012-01-30 Thread Chris Colman
Wow, that SimpleCDN tool looks pretty cool.

From a cursory glance at the doco it seems like they assume that
anything that starts with:

/wicket/resource/
 
is a static resource and that's what I've been doing also with good
success. I suppose I just need to remember to avoid mounting any non
static resource that I may need to construct 'on the fly' in the future
with a path that starts with /wicket/resource then that should fine no?

Is there any chance that wicket itself may, in the future, mount a non
static resource starting with that path?


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org]
Sent: Tuesday, 31 January 2012 3:46 AM
To: users@wicket.apache.org
Subject: Re: Configurable Resource's url (use CDN or not)

Hi,

See http://blog.55minutes.com/post/16529577810/simplecdn-and-the-newly-
released-fiftyfive-wicket-3-2


On Mon, Jan 30, 2012 at 5:30 PM, willo wi...@test.at wrote:
 Dear all,

 Looks like molindo isn't going to upgrade their solution to wicket
1.5.
 Is there something build into wicket 1.5 where serving resources via
CDN's
 is easily done?

 Many thanks
 Thomas

 --
 View this message in context: http://apache-
wicket.1842946.n4.nabble.com/Configurable-Resource-s-url-use-CDN-or-not
-
tp3899388p4341283.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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


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



Configurable Resource's url (use CDN or not)

2011-10-12 Thread Fabio Cechinel Veronez
Hello all,

I would like to implement my resources references (css files, js files
like jquery and sfuff) instances in a way that I could change the URL
it uses at head tag at runtime.

My goal is to easily change whether my references are fetched from a
CDN repository or internally by my own wicket application (or even if
it is minified or not).

And i was thinking about exposing those ResourceReferences instances
using JMX or something like that so I could change it with no need to
restart my application.

What would be the best solution for that?

Thanks in advance.

-- 
Fabio Cechinel Veronez

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