Hi,

On Tue, Jul 3, 2012 at 11:32 PM, sardo <[email protected]> wrote:
> Thanks Martin, that helps. Forgive my naivety, but why do I have the option
> of adding CSS via the Java code? Surely it's better to follow convention and
> add it into the appropriate .war directory?

If you provide components library then you need to distribute the
resources too, not just the classes.
Shared resources is more for delivering dynamically generated content.
A content that is different depending on some external condition
(request parameter, session variable, ...).
If you have one monolithic application and the resource is really
static then I see no reason why not to put it in its expected place in
the .war.

>
> ...and if I could do the Columbo, "Just one more thing", thing. Why am I
> getting two <head> tags in my app?  There's a <title> tag in a base page
> which is linked to a Label component in the code, which when rendered in the
> second <head> tag predictably throws an exception.  The full question is on
> the link below in Stack Overflow. This code worked in Wicket 1.4 but not
> after porting to 1.5:
>
> http://stackoverflow.com/questions/11243714/wicket-head-tag-rendered-twice-for-pages-extending-a-base-page
> http://stackoverflow.com/questions/11243714/wicket-head-tag-rendered-twice-for-pages-extending-a-base-page

Not sure.
I see no <wicket:extend> in UnSecureTemplate.html.

>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Caching-Imagages-CSS-JS-in-Wicket-1-5-3-tp4121068p4650350.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to