got5/tapestry5-jquery — Issue #127: Selector mixin error if getClientId is overriden
Author: ddelangle
Created: 2012-01-31 15:25:46+00:00
State: open

If I have a component A implementing getClientId and a component B extending A and overriding getClientId, I get the error message :

Mixins applied to a component must be unique. Mixin 'Selector' has already been applied.

The RenderTrackerMixinWorker add twice the mixin, to avoid it we should only add the mixin if it is not yet present :

if (!model.getMixinClassNames().contains(Selector.class.getName())) {
model.addMixinClassName(Selector.class.getName(), "before:*");
}