Thank you Howard,
that works like a charm!
FWIW,
Removing the t:id parameters and keeping
href="prop:style"
seemed to work for the style sheet, but not for the images.
Changed all the "prop:abc" to "${abc}" and now everything is working fine.
Daniel
On 6/4/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
Because expansions are now supported inside attributes (of non-component
elements), the need for the Any components has gone away. Now if you
specified a t:id you must define the type (it doesn't default to Any).
You can rewrite your template as:
<link rel="stylesheet" type="text/css" href="${style}"/>
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]
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]