bruno 2003/06/26 02:13:14
Modified: src/blocks/woody/java/org/apache/cocoon/woody/formmodel AbstractWidgetDefinitionBuilder.java Log: fetch expressionmanager from the component manager Revision Changes Path 1.2 +3 -0 cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/AbstractWidgetDefinitionBuilder.java Index: AbstractWidgetDefinitionBuilder.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/AbstractWidgetDefinitionBuilder.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AbstractWidgetDefinitionBuilder.java 22 Apr 2003 12:04:19 -0000 1.1 +++ AbstractWidgetDefinitionBuilder.java 26 Jun 2003 09:13:14 -0000 1.2 @@ -54,6 +54,7 @@ import org.apache.cocoon.woody.util.DomHelper; import org.apache.cocoon.woody.Constants; import org.apache.cocoon.woody.FormManager; +import org.apache.cocoon.woody.expression.ExpressionManager; import org.apache.cocoon.woody.datatype.DatatypeManager; import org.apache.avalon.framework.component.Composable; import org.apache.avalon.framework.component.ComponentManager; @@ -66,10 +67,12 @@ public abstract class AbstractWidgetDefinitionBuilder implements WidgetDefinitionBuilder, Composable { protected FormManager formManager; protected DatatypeManager datatypeManager; + protected ExpressionManager expressionManager; public void compose(ComponentManager componentManager) throws ComponentException { formManager = (FormManager)componentManager.lookup(FormManager.ROLE); datatypeManager = (DatatypeManager)componentManager.lookup(DatatypeManager.ROLE); + expressionManager = (ExpressionManager)componentManager.lookup(ExpressionManager.ROLE); } protected void setId(Element widgetElement, AbstractWidgetDefinition widgetDefinition) throws Exception {