@Muhammad: No, not exactly. I'd need a reference not necessarily to the component to which the mixin is applied but rather to all it's rendering subcomponents. Like in the example in my first post the myComponent could contain a zone which again contains i.e. an anchor tag where the var is named edit. When applying my mixin i'd like to specify it somehow like the following on one page:
... @MixinClasses({SomeMixin.class}) @Component(parameters={"attrName=something", "attrValue=x", "pattern=edit"}) private MyComponent myComponent; Where on another page i might have something like this: @MixinClasses({SomeMixin.class}) @Component(parameters={"attrName=something", "attrValue=y"}) private LinkSubmit submit; or this (MyParentComponent contains myComponent): @MixinClasses({SomeMixin.class}) @Component(parameters={"attrName=something", "attrValue=z", "pattern=myComponent.edit"}) private MyParentComponent myParentComponent; So the pattern parameter should be optional and i'd like to use it in the mixin in the begin/afterRender to check if the attribute should be applied to the currently rendered component. @Thiago: I tried to inject the container already but i didn't find any method which would assist me with the currently rendered subcomponent, the container itself isn't what i need. I also tried and looked at ComponentResources and JSSupport. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-resolve-the-rendered-component-in-a-mixin-tp5714315p5714348.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org