Cool, thanks for the workaround. I've create an issue for this https://issues.apache.org/jira/browse/TAPESTRY-2356
Thanks. Howard Lewis Ship wrote: > I can see adding an attribute to the annotation to control which phase > the stylesheet is added; currently it is added in the BeginRender > phase (or maybe SetupRender, can't remember off the top of my head). > In any case, to get the behavior you want, it should be added in the > AfterRender phase (i.e., after all components within the page have > rendered). I think this is a reasonable request. It may show up as a > second annotation. > > You could accomplish this yourself, as: > > public class MyPage { > > @Inject @Path("context:style/app.css") private Asset _stylesheet; > > @Environmental private PageRenderSupport _support; > > void afterRender() { _support.addStylesheetLink(_stylesheet, null); } > } > > On Mon, Apr 14, 2008 at 8:09 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > >> Yeah, that's really what I would expect as well. >> >> You have my vote an a JIRA issue. >> >> -Filip >> >> >> >> On 2008-04-14 15:02, Hugo Palma wrote: >> >> >>> Hi, >>> >>> i would like to use the IncludeStylesheet in my page classes in order to >>> override some styles declared in components. In order for this to happen >>> the css declared in the page would have to show up in the rendered HTML >>> after the css declared by the component. As it turns out, the css are >>> getting declared the other way around. >>> Is this possible to control ? >>> >>> This is the way i think it makes sense to override styles. >>> CSS declared in layout component takes precedence over css declared in >>> page which in turn takes precedence over css declared in component. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > >