Hi Mike,

How is the jar structured? Do you merge the Click jar into your main
jar? In a war, resources inside folders receive preference over jars
which is why one can override the resources from the Click jar. I'm
not familiar what the runtime structure will look like under Jetty
using a jar instead of a war.

regards

Bob

On Thu, Jun 30, 2011 at 10:58 AM, Mike Hoolehan <[email protected]> wrote:
> As Bob mentioned in an earlier topic
> (http://markmail.org/message/cf5ll5ae5n25whyn), adding your own
> click/menu.css will prevent Click from overwriting with its own menu.css.
> This works fine for me when running as a war file (tested in Tomcat or
> Jetty).  However, when I run the same app built as a executable Jar file
> using embedded Jetty, my custom click/menu.css is not being used - and the
> auto-generated one is.  Is there something preventing Click from detecting
> the menu.css when in it's a JAR resource?
>
> I have confirmed that there is only one click/menu.css in the jar file and
> it is my correct custom one.
>
> I understand I can write my own velocity macro to re-render the menu with my
> own css class names, but is there a simple way to keep original rendering
> but use custom CSS when deployed in a JAR?
>
> Regards,
> Mike
>

Reply via email to