You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by armandoxxx <ar...@dropchop.com> on 2014/04/01 17:38:21 UTC

Why resource bundles and how to use them ?

Hey guys .. 

The problem I'm having is how to use a bundle added to application bundles
... 

Me expectation was ... 
when in renderHead() method and call to response.render(MY BUNDLE) would do
the magic and bundled references get rendered to page ... no luck .. so help
appreciated ... cant find any full blown resource bundle example ... 

Regards

Armando

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Why resource bundles and how to use them ?

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

The idea is that Wicket will contribute the configured bundle every time a
resource of that bundle is used.
I.e. if you have a bundle.css combining a.css, b.css and c.css then when a
component or behavior needs to use b.css Wicket will contribute bundle.css.

In DEV mode you can contribute the resources separately (for easier
debugging, for example). In PROD mode - the bundle, to save network
resources.

Martin Grigorov
Wicket Training and Consulting


On Wed, Apr 2, 2014 at 11:59 AM, armandoxxx <ar...@dropchop.com>wrote:

> Hey......
>
> thank you for your reply ...
> but I still don't get why create bundles if I still need to define my
> resources and dependencies in resources ... and to use them in a page I
> still have to use the resource instance instead of reference to bundle ...
> whats the point of it ...
>
> Regards
>
> Armando
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207p4665220.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Why resource bundles and how to use them ?

Posted by Andrea Del Bene <an...@gmail.com>.
Could you post the code you are trying to use? This would help to 
understand your problem.
> Hey......
>
> thank you for your reply ...
> but I still don't get why create bundles if I still need to define my
> resources and dependencies in resources ... and to use them in a page I
> still have to use the resource instance instead of reference to bundle ...
> whats the point of it ...
>
> Regards
>
> Armando
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207p4665220.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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


Re: Why resource bundles and how to use them ?

Posted by armandoxxx <ar...@dropchop.com>.
Hey...... 

thank you for your reply ... 
but I still don't get why create bundles if I still need to define my
resources and dependencies in resources ... and to use them in a page I
still have to use the resource instance instead of reference to bundle ...
whats the point of it ... 

Regards

Armando

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207p4665220.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Why resource bundles and how to use them ?

Posted by Gabriel Landon <gl...@piti.pf>.
Is that what you are looking for :

http://wicketinaction.com/2012/07/wicket-6-resource-management/

https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/WicketApplication.java

Regards,

Gabriel.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207p4665209.html
Sent from the Users forum mailing list archive at Nabble.com.

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