Package de.odysseus.calyxo.forms

Examples of de.odysseus.calyxo.forms.FormFactory


    }

    log.debug("Initializing Calyxo Forms for Struts module '" + context.getName() + "'.");

    service = new FormsService();
    FormFactory factory = new Factory();
    factory.init(context);
    try {
      service.init(context, new StrutsFormsSupport(moduleConfig), factory, config);
    } catch (ConfigException e) {
      throw new ServletException(e);
    }
View Full Code Here


    String factoryClass = DEFAULT_FACTORY;
    param = config.getParamConfig("factory-class");
    if (param != null) {
      factoryClass = param.getValue();
    }
    FormFactory factory = null;
    try {
      factory = (FormFactory)module.getClassLoader().loadClass(factoryClass).newInstance();
    } catch (Exception e) {
      throw new ConfigException("Could not create form factory in " + config.toInlineString(), e);
    }
    factory.init(module);
    param = config.getParamConfig("config");
    if (param == null) {
      throw new ConfigException("Missing parameter 'config' in " + config.toInlineString());
    }
    FormsSupport support = new FormsSupport(module.getClassLoader(), dataClass);
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.forms.FormFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.