You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kristian Marinkovic <kr...@porsche.co.at> on 2007/06/20 10:34:41 UTC

T5: getting list of assigned Mixins from component

hi all,

how can i get a list of assigned mixins from a component?

I've tried from within a mixin but "getMixinClasses" returns always
an empty list:
@InjectComponent private Component _component;
@Environmental private JavascriptApi _jsAPI;
public void afterRender() {
    ComponentResources _resources = 
            _component.getComponentResources()
.getComponentModel().getMixinClassNames(); 

from within a component i tried it too with: 
@Inject private ComponentResources resources; 
with no luck. From what i could  see from the code i need a 
EmbeddedComponentModel instance  but i did not succeed 
in obtaining one :)

g
kris.