[
https://issues.apache.org/jira/browse/TAPESTRY-2481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608496#action_12608496
]
Howard M. Lewis Ship commented on TAPESTRY-2481:
------------------------------------------------
Checking the code for AssetInjectionProvider and IncludeStylesheetWorker I can
see that the code is doing the correct thing; the code is smart enough to use
the resources of the component with the annotation (i.e., the base class's
Resource, from it's ComponentModel) rather than the sub-class' Resource.
I built at quick test case (using @Inject for an asset, since that's easier to
test).
@InjectStylesheet is not inherited by base classes ... oh wait, logic inside
ClassTransformation is making all annotations effectively inherited. I wonder
why?
> Superclass that includes a stylesheet via IncludeStylesheet annotation breaks
> any subclass not in the same package as the stylesheet.
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-2481
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2481
> Project: Tapestry
> Issue Type: Bug
> Components: Annotations
> Affects Versions: 5.0.11
> Environment: Linux, JDK 1.5, Jetty 6.1.9
> Reporter: Andrew
> Assignee: Howard M. Lewis Ship
>
> I have a class that includes a stylesheet via IncludeStylesheet annotation.
> The problem occurs when I subclass this class from a different package than
> the stylesheet's package. The annotation is inherited, but the subclass can't
> locate the relative path to the CSS.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]