Examples of MessagesImpl


Examples of org.apache.commons.scaffold.util.MessagesImpl

            String bizType = bizFormBean.getBizType();

            if ((errors.empty()) && (null!=bizType)) {

                // Generate and populate our business request
                Messages messages = new MessagesImpl();
                try {
   
                    BizRequest bizRequest = createBizRequest(bizType);
                    // Populate the business request with ourselves
                    // merged with any user profile properties
                    Map properties = merge(getUserProfile());
                    BeanUtils.copyProperties(bizRequest,properties);
               
                }
                catch (Throwable t) {
                   
                    messages.add(new MessageImpl(
                        Tokens.ERROR_GENERAL,
                        t.toString()
                    ));
                   
                }

                // Validate our business request
                if (messages.isEmpty()) {
                    messages.add(
                        bizRequest.validate(mapping.getAttribute()));
                }
                if (messages.isEmpty()) {

                    setBizRequest(bizRequest);
                }
                else {
View Full Code Here

Examples of org.apache.commons.scaffold.util.MessagesImpl

            String bizType = bizFormBean.getBizType();

            if ((errors.empty()) && (null!=bizType)) {

                // Generate and populate our business request
                Messages messages = new MessagesImpl();
                try {
   
                    BizRequest bizRequest = createBizRequest(bizType);
                    // Populate the business request with ourselves
                    // merged with any user profile properties
                    Map properties = merge(getUserProfile());
                    BeanUtils.copyProperties(bizRequest,properties);
               
                }
                catch (Throwable t) {
                   
                    messages.add(new MessageImpl(
                        Tokens.ERROR_GENERAL,
                        t.toString()
                    ));
                   
                }

                // Validate our business request
                if (messages.isEmpty()) {
                    messages.add(
                        bizRequest.validate(mapping.getAttribute()));
                }
                if (messages.isEmpty()) {

                    setBizRequest(bizRequest);
                }
                else {
View Full Code Here

Examples of org.apache.hivemind.impl.MessagesImpl

{
    protected Messages read(String file, Locale locale) throws Exception
    {
        Resource l = getResource(file);

        return new MessagesImpl(l, locale);
    }
View Full Code Here

Examples of org.apache.hivemind.impl.MessagesImpl

        String projectRoot = System.getProperty("PROJECT_ROOT", "..");
        String path = projectRoot + "/examples/src/descriptor/META-INF/panorama.startup.xml";

        Resource r = new FileResource(path);

        return new MessagesImpl(r, Locale.getDefault());
    }
View Full Code Here

Examples of org.apache.hivemind.impl.MessagesImpl

{
    protected Messages read(String file, Locale locale) throws Exception
    {
        Resource l = getResource(file);

        return new MessagesImpl(l, locale);
    }
View Full Code Here

Examples of org.apache.hivemind.impl.MessagesImpl

        String projectRoot = System.getProperty("PROJECT_ROOT", ".");
        String path = projectRoot + "/examples/src/descriptor/META-INF/panorama.startup.xml";

        Resource r = new FileResource(path);

        return new MessagesImpl(r, Locale.getDefault());
    }
View Full Code Here

Examples of org.apache.hivemind.impl.MessagesImpl

{
    protected Messages read(String file, Locale locale) throws Exception
    {
        Resource l = getResource(file);

        return new MessagesImpl(l, locale);
    }
View Full Code Here

Examples of org.apache.hivemind.impl.MessagesImpl

        String projectRoot = System.getProperty("PROJECT_ROOT", "..");
        String path = projectRoot + "/examples/src/descriptor/META-INF/panorama.startup.sdl";

        Resource r = new FileResource(path);

        return new MessagesImpl(r, Locale.getDefault());
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.internal.util.MessagesImpl

        if (_validationMessages == null)
        {
            ResourceBundle bundle = ResourceBundle
                    .getBundle("org.apache.tapestry.internal.ValidationMessages");

            _validationMessages = new MessagesImpl(bundle);
        }

        return _validationMessages;
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.internal.util.MessagesImpl

        if (_validationMessages == null)
        {
            ResourceBundle bundle = ResourceBundle
                    .getBundle("org.apache.tapestry.internal.ValidationMessages");

            _validationMessages = new MessagesImpl(Locale.ENGLISH, bundle);
        }

        return _validationMessages;
    }
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.