Fehler #2400 FormprocessException, module ccm-themedirector

ApplicationSelector: fixed imports


git-svn-id: https://svn.libreccm.org/ccm/trunk@3128 8810af33-2d31-482b-a856-94f89814c4df
master
konermann 2015-02-09 13:13:11 +00:00
parent 2f15348a94
commit 6fb5771589
7 changed files with 7 additions and 5 deletions

View File

@ -30,7 +30,6 @@ import com.arsdigita.bebop.form.Option;
import com.arsdigita.bebop.FormProcessException;
import com.arsdigita.bebop.SaveCancelSection;
import com.arsdigita.bebop.SimpleContainer;
import com.arsdigita.cms.util.GlobalizationUtil;
import com.arsdigita.kernel.Kernel;
import com.arsdigita.kernel.Party;
import com.arsdigita.kernel.permissions.PermissionService;
@ -39,7 +38,6 @@ import com.arsdigita.util.UncheckedWrapperException;
import com.arsdigita.web.ApplicationType;
import com.arsdigita.web.Application;
import com.arsdigita.web.ApplicationCollection;
import com.arsdigita.london.util.ui.parameters.DomainObjectParameter;
import com.arsdigita.portalworkspace.util.GlobalizationUtil;

View File

@ -40,3 +40,4 @@ theme.cancel_button_hint=Abort changes & reset the form.
theme.cancel_button_pressed_msg=cancel pressed
theme.form.url_can_contain_only_characters=The URL can only contain A-Z, a-z, 0-9, _, and -.
theme.form.url_already_exists=A theme with this url already exists.
theme.cancelled=Cancelled

View File

@ -40,3 +40,4 @@ theme.cancel_button_hint=Verwerfen der Eintragungen und R\u00fccksetzen des Form
theme.cancel_button_pressed_msg=Vorgang abgebrochen
theme.form.url_can_contain_only_characters=Die URL darf nur die Zeichen A-Z, a-z, 0-9, _ und - enthalten.
theme.form.url_already_exists=Ein Theme mit dieser URL existiert bereits.
theme.cancelled=Abgebrochen

View File

@ -40,3 +40,4 @@ theme.cancel_button_hint=Abort changes & reset the form.
theme.cancel_button_pressed_msg=cancel pressed
theme.form.url_can_contain_only_characters=The URL can only contain A-Z, a-z, 0-9, _, and -.
theme.form.url_already_exists=A theme with this url already exists.
theme.cancelled=Cancelled

View File

@ -40,3 +40,4 @@ theme.cancel_button_hint=Abort changes & reset the form.
theme.cancel_button_pressed_msg=cancel pressed
theme.form.url_can_contain_only_characters=The URL can only contain A-Z, a-z, 0-9, _, and -.
theme.form.url_already_exists=A theme with this url already exists.
theme.cancelled=Cancelled

View File

@ -20,7 +20,6 @@ package com.arsdigita.themedirector.ui;
import com.arsdigita.themedirector.ui.listeners.ApproveThemeActionListener;
import com.arsdigita.bebop.ActionLink;
import com.arsdigita.bebop.FormProcessException;
import com.arsdigita.bebop.GridPanel;
import com.arsdigita.bebop.Label;
import com.arsdigita.bebop.Link;
@ -211,7 +210,7 @@ public class ThemeContainer extends SimpleContainer
if (m_editForm.isCancelled(state)) {
editFormLink.setVisible(state, true);
m_editForm.setVisible(state, false);
throw new FormProcessException("cancelled");
throw new FormProcessException(GlobalizationUtil.globalize("cancelled"));
}
}
});

View File

@ -24,6 +24,7 @@ import com.arsdigita.toolbox.ui.ModalPanel;
import com.arsdigita.bebop.event.FormSectionEvent;
import com.arsdigita.bebop.event.FormSubmissionListener;
import com.arsdigita.bebop.FormProcessException;
import com.arsdigita.themedirector.util.GlobalizationUtil;
/**
* This class is essentially a copy of the CancelListener
@ -43,7 +44,7 @@ public class CancelListener implements FormSubmissionListener {
PageState state = event.getPageState();
if (m_form.isCancelled(state)) {
m_modalPanel.pop(state);
throw new FormProcessException("cancelled");
throw new FormProcessException(GlobalizationUtil.globalize("cancelled"));
}
}
}