Sorry, my initial post was misleading. It's not just CSS files, it's
all the injected Assets I have (images, etc).
For code like this, T5 also gives an error saying that I need to give a type.
@Inject
@Path("context:images/OACSIMLogo_Trans_DS2.jpg")
private Asset ieislogo;
<img t:id="ieislogo" src="prop:ieislogo" />
Is this related to the deprecation of the Any component, because that
was implicitly created for us in the past?
Daniel
On 6/4/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
Hi, this was working this morning, until the latest and greatest
snapshot came out today. How should we go about injecting a css file
now?
I had this:
@Inject
@Path("context:css/IEISStyle.css")
private Asset style;
<head>
<link rel="stylesheet" type="text/css" t:id="style" href="prop:style"/>
</head>
And it was working fine.
But now I get this:
org.apache.tapestry.ioc.internal.util.TapestryException
Embedded component 'style' has no type. You should specify a type in
the component template, or define the component inside class
mil.army.oacsim.IEIS2.components.border using the @Component
annotation on a private instance variable.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]