void submit() {

        // switch to root site
        m_clonedCms.getRequestContext().setSiteRoot("");

        CmsSite site = getSiteFromForm();

        if (m_site == null) {

            //Show report field and hide form fields
            m_report.setVisible(true);
            m_tab.setVisible(false);
            m_ok.setEnabled(false);
            m_ok.setVisible(true);
            //Change cancel caption to close (will not interrupt site creation anymore)
            m_cancel.setVisible(false);
            setOkButtonEnabled();
            m_cancel.setCaption(
                CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CLOSE_0));

            Map<String, String> bundle = getBundleMap();

            boolean createOU = m_fieldCreateOU.isEnabled() & m_fieldCreateOU.getValue().booleanValue();
            CmsCreateSiteThread createThread = new CmsCreateSiteThread(
                m_clonedCms,
                m_manager,
                site,
                m_site,
                m_fieldLoadSiteTemplate.getValue(),
                getFieldTemplate(),
                createOU,
                (String)m_fieldSelectParentOU.getValue(),
                (String)m_fieldSelectOU.getValue(),
                m_os,
                bundle,
                new Runnable() {

                    public void run() {

                }

                });

            CmsReportWidget report = new CmsReportWidget(createThread);

            report.setWidth("100%");
            report.setHeight("350px");

            m_threadReport.addComponent(report);
            createThread.start();
        } else {
            if (!site.getSiteRoot().equals(m_site.getSiteRoot())) {
                m_manager.deleteElements(Collections.singletonList(m_site.getSiteRoot()));
            }
            m_manager.writeElement(site);
            m_manager.closeDialogWindow(true);
        }

    }
void submit ( ) { m_clonedCms . getRequestContext ( ) . setSiteRoot ( "" ) ; CmsSite site = getSiteFromForm ( ) ; if ( m_site == null ) { m_report . setVisible ( true ) ; m_tab . setVisible ( false ) ; m_ok . setEnabled ( false ) ; m_ok . setVisible ( true ) ; m_cancel . setVisible ( false ) ; setOkButtonEnabled ( ) ; m_cancel . setCaption ( CmsVaadinUtils . getMessageText ( org . opencms . workplace . Messages . GUI_DIALOG_BUTTON_CLOSE_0 ) ) ; Map < String , String > bundle = getBundleMap ( ) ; boolean createOU = m_fieldCreateOU . isEnabled ( ) & m_fieldCreateOU . getValue ( ) . booleanValue ( ) ; CmsCreateSiteThread createThread = new CmsCreateSiteThread ( m_clonedCms , m_manager , site , m_site , m_fieldLoadSiteTemplate . getValue ( ) , getFieldTemplate ( ) , createOU , ( String ) m_fieldSelectParentOU . getValue ( ) , ( String ) m_fieldSelectOU . getValue ( ) , m_os , bundle , new Runnable ( ) { public void run ( ) { } } ) ; CmsReportWidget report = new CmsReportWidget ( createThread ) ; report . setWidth ( "100%" ) ; report . setHeight ( "350px" ) ; m_threadReport . addComponent ( report ) ; createThread . start ( ) ; } else { if ( ! site . getSiteRoot ( ) . equals ( m_site . getSiteRoot ( ) ) ) { m_manager . deleteElements ( Collections . singletonList ( m_site . getSiteRoot ( ) ) ) ; } m_manager . writeElement ( site ) ; m_manager . closeDialogWindow ( true ) ; } }
Saves the entered site-data as a CmsSite object.<p>