Re: Mounting of ConcatResourceBundleReference in a WebPage

2012-12-07 Thread aws0934
Hi Martin,

I do not know how to use IRequestMapper to achieve my goal and could not
find a suitable example. Do you know where I can find one? 

Basically, I just want to remove the package name from my CSS-/JS-URLs
(ConcatResourceBundleReferences) so that for instance

/wicket/resource/com.company.pages.AbstractBasePage$JSBundle/scripts-ver-439FF31767E6B0DF2C33D8C71F09.js

looks at least like

/wicket/resource/AbstractBasePage$JSBundle/scripts-ver-439FF31767E6B0DF2C33D8C71F09.js

or even better like

/wicket/resource/scripts-ver-439FF31767E6B0DF2C33D8C71F09.js

- which would be quite like mounting resources with mountResource inside the
Application (minus the "/wicket/resource").

Arne



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mounting-of-ConcatResourceBundleReference-in-a-WebPage-tp4653693p4654592.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: Mounting of ConcatResourceBundleReference in a WebPage

2012-11-27 Thread Martin Grigorov
Hi,

You can use custom IRequestMapper for this.


On Tue, Nov 27, 2012 at 5:43 PM, aws0934 wrote:

> As I figured out, it definitely hurts, because mounting the bundle in a
> webpage on each request leaks memory, as the map containing the reference
> keys grows and grows and grows.
>
> So, is there any other way to have a nice URL for a customized
> ConcatResourceBundleReference which relies on session object info?
>
> Arne
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Mounting-of-ConcatResourceBundleReference-in-a-WebPage-tp4653693p4654268.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 <http://jweekend.com/>


Re: Mounting of ConcatResourceBundleReference in a WebPage

2012-11-27 Thread aws0934
As I figured out, it definitely hurts, because mounting the bundle in a
webpage on each request leaks memory, as the map containing the reference
keys grows and grows and grows.

So, is there any other way to have a nice URL for a customized
ConcatResourceBundleReference which relies on session object info?

Arne



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mounting-of-ConcatResourceBundleReference-in-a-WebPage-tp4653693p4654268.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



Mounting of ConcatResourceBundleReference in a WebPage

2012-11-07 Thread aws0934
I want a nice URL for my customized ConcatResourceBundleReference.

If the bundle would not have a reference to the Session object in order to
get the WebClientInfo, I could easily mount it in the applicationĀ“s init
method.

As a workaround I mount the resource in my abstract BasePage (superclass of
WebPage) via:

WebApplication.get().mountResource("css", new
MyConcatResourceBundleReference(cssRefs));

This, I fear, might hurt the applicationĀ“s performance, because the bundle
is mounted every time a page is requested. Does it hurt? And if yes, is
there any existing mechanism to mount MyConcatResourceBundleReference just
once or do I have to implement that on my own?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mounting-of-ConcatResourceBundleReference-in-a-WebPage-tp4653693.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