Examples of InputConfig


Examples of com.opensymphony.xwork2.interceptor.annotations.InputConfig

    /**
     * Process {@link InputConfig} annotation applied to method
     */
    protected String processInputConfig(final Object action, final String method, final String currentResultName) throws Exception {
        String resultName = currentResultName;
        InputConfig annotation = action.getClass().getMethod(method, EMPTY_CLASS_ARRAY).getAnnotation(InputConfig.class);
        if (annotation != null) {
            if (!annotation.methodName().equals("")) {
                Method m = action.getClass().getMethod(annotation.methodName());
                resultName = (String) m.invoke(action);
            } else {
                resultName = annotation.resultName();
            }
            if (LOG.isDebugEnabled()) {
                LOG.debug("Changing result name from [#0] to [#1] because of processing annotation [#2] on action [#3]",
                        currentResultName, resultName, InputConfig.class.getSimpleName(), action);
            }
View Full Code Here

Examples of com.opensymphony.xwork2.interceptor.annotations.InputConfig

                if (action instanceof ValidationWorkflowAware) {
                    resultName = ((ValidationWorkflowAware) action).getInputResultName();
                }

                InputConfig annotation = action.getClass().getMethod(invocation.getProxy().getMethod(), EMPTY_CLASS_ARRAY).getAnnotation(InputConfig.class);
                if (annotation != null) {
                    if (!annotation.methodName().equals("")) {
                        Method method = action.getClass().getMethod(annotation.methodName());
                        resultName = (String) method.invoke(action);
                    } else {
                        resultName = annotation.resultName();
                    }
                }


                return resultName;
View Full Code Here

Examples of de.odysseus.calyxo.forms.conf.InputConfig

    }

    Iterator inputConfigs = config.getInputConfigs();
    if (inputConfigs.hasNext()) {
      while (inputConfigs.hasNext()) {
        InputConfig inputConfig = (InputConfig)inputConfigs.next();
        inputs.put(inputConfig.getName(), new Input(factory, inputConfig, locale));
      }
    }

    Iterator assertConfigs = config.getAssertConfigs();
    if (assertConfigs.hasNext()) {
View Full Code Here

Examples of de.odysseus.calyxo.forms.conf.InputConfig

    while (fields.hasNext()) {
      addFieldByProperty((FieldConfig)fields.next());
    }
    Iterator inputs = getInputConfigs();
    while (inputs.hasNext()) {
      InputConfig input = (InputConfigImpl)inputs.next();
      fields = input.getFieldConfigs();
      while (fields.hasNext()) {
        addFieldByProperty((FieldConfig)fields.next());
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.