Package net.sourceforge.stripes.controller

Examples of net.sourceforge.stripes.controller.ParameterName


        if (value != null) {
            // find the action bean class we're dealing with
            Class<? extends ActionBean> beanClass = tag.getParentFormTag().getActionBeanClass();
            if (beanClass != null) {
                ValidationMetadata validate = config.getValidationMetadataProvider()
                        .getValidationMetadata(beanClass, new ParameterName(tag.getName()));
                if (validate != null && validate.encrypted()) {
                    String[] copy = new String[value.length];
                    for (int i = 0; i < copy.length; i++) {
                        copy[i] = CryptoUtil.decrypt(value[i]);
                    }
View Full Code Here


        if (errors == null) {
            errors = new ArrayList<ValidationError>();
            put(field, errors);
        }

        error.setFieldName( new ParameterName(field).getStrippedName() );
        errors.add(error);
    }
View Full Code Here

     * @param errors the list of validation errors for the field
     * @return the previous errors for the field, or null if there were none
     */
    @Override
    public List<ValidationError> put(String field, List<ValidationError> errors) {
        String strippedName = new ParameterName(field).getStrippedName();

        for (ValidationError error : errors) {
            error.setFieldName(strippedName);
        }

View Full Code Here

                }
            }

            // check validation for encryption flag
            return StripesFilter.getConfiguration().getValidationMetadataProvider()
                    .getValidationMetadata(beanClass, new ParameterName(name));
        }
        else {
            return null;
        }
    }
View Full Code Here

    public static String getLocalizedFieldName(String fieldName,
                                               String actionPath,
                                               Class<? extends ActionBean> beanclass,
                                               Locale locale) {

        ParameterName parameterName = new ParameterName(fieldName);
        String strippedName = parameterName.getStrippedName();
        String localizedValue = null;
        ResourceBundle bundle = null;

        try {
            bundle = StripesFilter.getConfiguration().getLocalizationBundleFactory()
View Full Code Here

        Set<String> fields = new HashSet<String>();
       
        if (form != null) {
            for (String field : form.getRegisteredFields()) {
                fields.add(new ParameterName(field).getStrippedName());
            }
        }

        if ((this.fields != null) && (this.fields.trim().length() > 0))
            fields.addAll(Arrays.asList(this.fields.split(",")));
View Full Code Here

        if (value != null) {
            // find the action bean class we're dealing with
            Class<? extends ActionBean> beanClass = tag.getParentFormTag().getActionBeanClass();
            if (beanClass != null) {
                ValidationMetadata validate = config.getValidationMetadataProvider()
                        .getValidationMetadata(beanClass, new ParameterName(tag.getName()));
                if (validate != null && validate.encrypted()) {
                    String[] copy = new String[value.length];
                    for (int i = 0; i < copy.length; i++) {
                        copy[i] = CryptoUtil.decrypt(value[i]);
                    }
View Full Code Here

        Set<String> fields = new HashSet<String>();
       
        if (form != null) {
            for (String field : form.getRegisteredFields()) {
                fields.add(new ParameterName(field).getStrippedName());
            }
        }

        if ((this.fields != null) && (this.fields.trim().length() > 0))
            fields.addAll(Arrays.asList(this.fields.split(",")));
View Full Code Here

    public static String getLocalizedFieldName(String fieldName,
                                               String actionPath,
                                               Class<? extends ActionBean> beanclass,
                                               Locale locale) {

        ParameterName parameterName = new ParameterName(fieldName);
        String strippedName = parameterName.getStrippedName();
        String localizedValue = null;
        ResourceBundle bundle = null;

        try {
            bundle = StripesFilter.getConfiguration().getLocalizationBundleFactory()
View Full Code Here

                }
            }

            // check validation for encryption flag
            return StripesFilter.getConfiguration().getValidationMetadataProvider()
                    .getValidationMetadata(beanClass, new ParameterName(name));
        }
        else {
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.controller.ParameterName

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.