after some more research it seems that mixins have to be applied to a specific component type of specific instance of a component type. i dont think you can mixin for generics. i think a component minus a template is more what your looking for.

~evan
----- Original Message ----- From: "David Avenante" <[EMAIL PROTECTED]>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Wednesday, August 01, 2007 3:31 PM
Subject: [T5] Any component Bis


Hi,

The Any component is gone and now

<div t:type="any" class="prop:someProperty">...</div>

is now just:

<div class="${someProperty}">...</div>

but is it possible since it's gone to add a mixin to and element like

<div t:mixins="myLayout">My layout</div>

When I try this case tapestry throw me this error :

You may not specify mixins for element <div> because it does not
represent a component (which requires either an id attribute or a type
attribute)

Ok so a :

<div t:id="myId" t:mixins="myLayout">My layout</div>

Embedded component 'subLayout' has no type. You should specify a type
in the component template, or define the component inside class ....

Any solution ?

Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to