Hi

You can create a mixin that adds the atttribute and apply it to all
component via a worker and MutableComponentModel.addMixinClassName

Dimitris Zenios

On Wed, Dec 16, 2015 at 12:27 PM, Nathan Quirynen <
nat...@pensionarchitects.be> wrote:

> Hi,
>
> I have some use cases where I want to add an attribute and value to every
> instance of a specific component used in my project. For example: add
> attribute "readonly" to every t:datefield.
> I can ofcourse just add it everywhere, but I thought (remember reading it
> somewhere) there was a nicer Tapestry way of accomplishing this, like
> configuring something in the module class.
>
> Anyone that can point me in the right direction?
>
> Nathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to