Setting a parameter of an implementation mixin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Setting a parameter of an implementation mixin

Jaroslav Ciml
Hi,

is there a way to set the value of a mixin parameter in case of an implementation mixin?

If the mixin is used as an instance mixin, I can bound its parameter value in the template or using the attribute "parameters" of the @Component annotation.

However, let's supppose that a component renders its markup from Java code without a template and a mixin should apply to all instances of this component (the mixin is added via the @Mixin <http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/Mixin.html> annotation). Is there a way to bind a parameter of the mixin in such case?

Btw. the mixin parameter is of boolean type and I would like to bind it just to literal:false.

Thanks.
Jarda