Examples of WebMessage


Examples of org.encuestame.utils.web.frontEnd.WebMessage

    /**
     * Set the 'message' attribute to a info {@link WebMessage} that renders the info text.
     */
    public static void setInfoMessage(String info) {
        put(MESSAGE_ATTRIBUTE, new WebMessage(WebMessage.WebInfoType.INFO, info));
    }
View Full Code Here

Examples of org.encuestame.utils.web.frontEnd.WebMessage

    /**
     * Set the 'message' attribute to a warning {@link WebMessage} that renders the warning text.
     */
    public static void setWarningMessage(String warning) {
        put(MESSAGE_ATTRIBUTE, new WebMessage(WebMessage.WebInfoType.WARNING, warning));
    }
View Full Code Here

Examples of org.encuestame.utils.web.frontEnd.WebMessage

    /**
     * Set the 'message' attribute to a error {@link WebMessage} that renders the error text.
     */
    public static void setErrorMessage(String error) {
        put(MESSAGE_ATTRIBUTE, new WebMessage(WebMessage.WebInfoType.ERROR, error));
    }
View Full Code Here

Examples of org.encuestame.utils.web.frontEnd.WebMessage

    public static void setErrorMessage(String error) {
        put(MESSAGE_ATTRIBUTE, new WebMessage(WebMessage.WebInfoType.ERROR, error));
    }

    public static void setErrorMessage(String error, final String description) {
        put(MESSAGE_ATTRIBUTE, new WebMessage(WebMessage.WebInfoType.ERROR, error, description));
    }
View Full Code Here

Examples of org.encuestame.utils.web.frontEnd.WebMessage

    /**
     * Set the 'message' attribute to a success {@link WebMessage} that renders the success text.
     */
    public static void setSuccessMessage(String success) {
        put(MESSAGE_ATTRIBUTE, new WebMessage(WebMessage.WebInfoType.SUCCESS, success));
    }
View Full Code Here

Examples of org.encuestame.utils.web.frontEnd.WebMessage

    ModelAndView handleException(EnMeExpcetion ex, HttpServletRequest request) {
        ModelAndView mav = new ModelAndView();
        mav.setViewName("tilesResolver");
        mav.setViewName("error");
        ex.printStackTrace();
        WebMessage emptyError = new WebMessage(WebInfoType.ERROR, ex.getMessage(), ExceptionUtils.getFullStackTrace(ex),
                EnMePlaceHolderConfigurer.getIntegerProperty("encuestame.error.level"),
                EnMePlaceHolderConfigurer.getBooleanProperty("encuestame.error.display_bugtracking"));
        request.setAttribute("message", emptyError);
        return mav;
    }
View Full Code Here

Examples of org.encuestame.utils.web.frontEnd.WebMessage

             return "redirect:/home";
        } else {
            log.error("*********************************************************************************************");
            log.error("error no error message, redirect to home");
            log.error("*********************************************************************************************");
            WebMessage emptyError = new WebMessage(WebInfoType.ERROR, getMessage("e_023", request, null), "", this.errorLevel, this.bugTracking);
            request.setAttribute("message", emptyError);
            return "error";
        }
    }
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.