Hello everyone

Sorry for resurrecting an old thread but I have come across this in an
application I am developing.In my opinion including the whole core stack
just because we want to include a single style sheet is wrong especially in
cases where I set the INCLUDE_CORE_STACK symbol to false.Its up to callers
responsibility if he wants to override a core style sheet to include the
core stack and then its style sheet.After all he can import its style sheet
to the core stack using
@Contribute(JavaScriptStack.class)
@Core
public static void setupCoreJavaScriptStack(...) {...}

and override anything the user wants


Regards
Dimitris Zenios

On Wed, Oct 9, 2013 at 5:30 AM, Lenny Primak <lpri...@hope.nyc.ny.us> wrote:

> Voted: https://issues.apache.org/jira/browse/TAP5-2197
>
> On Oct 4, 2013, at 8:37 AM, Geoff Callender wrote:
>
> > Added to JIRA as TAP5-2197 - Overriding core css - bug?
> >
> > On 02/10/2013, at 7:00 AM, Thiago H de Paula Figueiredo wrote:
> >
> >> On Tue, 01 Oct 2013 05:29:12 -0300, Geoff Callender <
> geoff.callender.jumpst...@gmail.com> wrote:
> >>
> >>> I'm having trouble overriding the core css. I want to override the css
> of the bootstrap classes...
> >>>
> >>> When I do the following import, the page renders a link to my css
> BEFORE the links to the core css files. No good.
> >>>
> >>>     @Import(stylesheet = { "context:css/mystylesheet.css" })
> >>>
> >>> BUT, when I do the following instead, the page renders in the right
> order, ie. a link to my css AFTER the links to the core css. Yay.
> >>>
> >>>     @Import(stack = { "core" }, stylesheet = {
> "context:css/mystylesheet.css" })
> >>>
> >>> Is this a bug or expected behaviour?
> >>
> >> It does look like a bug to me. I'd expect to have stack's stylesheets
> added before component- or page-added ones always.
> >>
> >> --
> >> Thiago H. de Paula Figueiredo
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to