Examples of clearAll()


Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

        return new SendStreamResponse(new ByteArrayInputStream(xml.getBytes()), "inline;filename=kpiExport_" + id + ".xml");
    }

    public CommandResponse actionImportKPIs(CommandRequest request) {
        MessagesComponentHandler messagesHandler = (MessagesComponentHandler) Factory.lookup("org.jboss.dashboard.ui.components.MessagesComponentHandler");
        messagesHandler.clearAll();
        if (request.getUploadedFilesCount() > 0) {
            File file = (File) request.getFilesByParamName().get("importFile");
            try {

                // Parse the file.
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

            getWorkspacesPropertiesHandler().clearFieldErrors();
            getWorkspacesPropertiesHandler().setName(null);
            getWorkspacesPropertiesHandler().setTitle(null);

            MessagesComponentHandler messagesHandler = MessagesComponentHandler.lookup();
            messagesHandler.clearAll();
        } catch (Exception e) {
            log.error("Error: ", e);
            return false;
        }
        return true;
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

            renderFragment("outputNewLine");
            setAttribute("id", id);
            renderFragment("outputDisplayLinks");
        }
        renderFragment("outputEnd");
        if (messagesComponentHandler.isClearAfterRender()) messagesComponentHandler.clearAll();
    }

    protected String localizeMessage(String message) {
        MessagesComponentHandler messagesComponentHandler = MessagesComponentHandler.lookup();
        try {
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

        }
    }

    protected boolean validateBeforeEdition() {
        MessagesComponentHandler messagesHandler = MessagesComponentHandler.lookup();
        messagesHandler.clearAll();
        boolean valid = validate();
        if (!valid) messagesHandler.getErrorsToDisplay().add(0, "ui.alert.workspaceEdition.KO");
        return valid;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

            this.setCreateSection(Boolean.FALSE);
            this.setSelectedSectionId(null);
            defaultValues();
        } catch (Exception e) {
            log.error("Error: " + e.getMessage());
            messagesHandler.clearAll();
            messagesHandler.addError("ui.alert.sectionCopy.KO");
        }
    }

    public void actionDeleteSection(CommandRequest request) {
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

                    // Print an ok message and move the user into the new page
                    messagesHandler.addMessage("ui.alert.sectionCreation.OK");
                    NavigationManager.lookup().setCurrentSection(newSection);
                } catch (Exception e) {
                    log.error("Error creating section: ", e);
                    messagesHandler.clearAll();
                    messagesHandler.addError("ui.alert.sectionCreation.KO");
                }
            }
        } else {
            this.setDuplicateSection(Boolean.FALSE);
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

        }
    }

    protected boolean validateBeforeEdition() {
        MessagesComponentHandler messagesHandler = MessagesComponentHandler.lookup();
        messagesHandler.clearAll();
        boolean valid = validate();
        if (!valid) messagesHandler.getErrorsToDisplay().add(0, "ui.alert.sectionCreation.KO");
        return valid;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

                envelopeId = UIServices.lookup().getEnvelopesManager().getDefaultElement().getId();
                messagesHandler.addMessage("ui.alert.workspaceCreation.OK");
            }

        } catch (Exception e) {
            messagesHandler.clearAll();
            messagesHandler.addError("ui.alert.workspaceCreation.KO");
            log.error("Error: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

        }
    }

    protected boolean validateBeforeCreation() {
        MessagesComponentHandler messagesHandler = MessagesComponentHandler.lookup();
        messagesHandler.clearAll();
        boolean valid = validate();
        if (!valid) messagesHandler.getErrorsToDisplay().add(0, "ui.alert.workspaceCreation.KO");
        return valid;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.clearAll()

        return new SendStreamResponse(new ByteArrayInputStream(xml.getBytes()), "inline;filename=kpiExport_" + id + ".kpiex");
    }

    public CommandResponse actionImportKPIs(CommandRequest request) {
        MessagesComponentHandler messagesHandler = MessagesComponentHandler.lookup();
        messagesHandler.clearAll();
        if (request.getUploadedFilesCount() > 0) {
            File file = (File) request.getFilesByParamName().get("importFile");
            try {

                // Parse the file.
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.