You call loadDefaultDecorators
in the constructor, and call setElementDecorators
from there.
But addElement
uses the element decorators only when you construct elements from strings, not when you pass a ready made element, while setElementDecorators
only sets the decorators for the already existing controls (which are none in the constructor).
As you create the elements first and then pass them as Elements the element decorators are never set.
Remove the call to loadDefaultDecorators
in the constructor.
Matijs
2010-02-17 12:43:22