You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Rice Yeh <ri...@gmail.com> on 2007/07/10 19:46:36 UTC

Is it possible to write a new type cforms widget outside cocoon-forms-impl? How?

Hi,
  I am trying to write a new type of widget in my block. I have changed some
code in cocoon-forms-impl to have my widget definition builder put into the
SimpleServiceSelector, the implementation of
WidgetDefinitionBuilderSelector.  But now, I meet a problem. All widget
definition builders inherit from AbstractWidgetDefinitionBuilder and have
their fields like datatypeManager, expressionManager, .. etc,. injected
through avalon. Since my widget is newed by my code, instead of
SimpleServiceSelector, these fields are not configured. How do I do this
injection.

Rice