Fehler #2400 FormprocessException, module ccm-themedirector
ApplicationSelector: fixed imports git-svn-id: https://svn.libreccm.org/ccm/trunk@3128 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
2f15348a94
commit
6fb5771589
|
|
@ -30,7 +30,6 @@ import com.arsdigita.bebop.form.Option;
|
||||||
import com.arsdigita.bebop.FormProcessException;
|
import com.arsdigita.bebop.FormProcessException;
|
||||||
import com.arsdigita.bebop.SaveCancelSection;
|
import com.arsdigita.bebop.SaveCancelSection;
|
||||||
import com.arsdigita.bebop.SimpleContainer;
|
import com.arsdigita.bebop.SimpleContainer;
|
||||||
import com.arsdigita.cms.util.GlobalizationUtil;
|
|
||||||
import com.arsdigita.kernel.Kernel;
|
import com.arsdigita.kernel.Kernel;
|
||||||
import com.arsdigita.kernel.Party;
|
import com.arsdigita.kernel.Party;
|
||||||
import com.arsdigita.kernel.permissions.PermissionService;
|
import com.arsdigita.kernel.permissions.PermissionService;
|
||||||
|
|
@ -39,7 +38,6 @@ import com.arsdigita.util.UncheckedWrapperException;
|
||||||
import com.arsdigita.web.ApplicationType;
|
import com.arsdigita.web.ApplicationType;
|
||||||
import com.arsdigita.web.Application;
|
import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.web.ApplicationCollection;
|
import com.arsdigita.web.ApplicationCollection;
|
||||||
|
|
||||||
import com.arsdigita.london.util.ui.parameters.DomainObjectParameter;
|
import com.arsdigita.london.util.ui.parameters.DomainObjectParameter;
|
||||||
import com.arsdigita.portalworkspace.util.GlobalizationUtil;
|
import com.arsdigita.portalworkspace.util.GlobalizationUtil;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,4 @@ theme.cancel_button_hint=Abort changes & reset the form.
|
||||||
theme.cancel_button_pressed_msg=cancel pressed
|
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_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.form.url_already_exists=A theme with this url already exists.
|
||||||
|
theme.cancelled=Cancelled
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,4 @@ theme.cancel_button_hint=Verwerfen der Eintragungen und R\u00fccksetzen des Form
|
||||||
theme.cancel_button_pressed_msg=Vorgang abgebrochen
|
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_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.form.url_already_exists=Ein Theme mit dieser URL existiert bereits.
|
||||||
|
theme.cancelled=Abgebrochen
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,4 @@ theme.cancel_button_hint=Abort changes & reset the form.
|
||||||
theme.cancel_button_pressed_msg=cancel pressed
|
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_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.form.url_already_exists=A theme with this url already exists.
|
||||||
|
theme.cancelled=Cancelled
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,4 @@ theme.cancel_button_hint=Abort changes & reset the form.
|
||||||
theme.cancel_button_pressed_msg=cancel pressed
|
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_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.form.url_already_exists=A theme with this url already exists.
|
||||||
|
theme.cancelled=Cancelled
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ package com.arsdigita.themedirector.ui;
|
||||||
|
|
||||||
import com.arsdigita.themedirector.ui.listeners.ApproveThemeActionListener;
|
import com.arsdigita.themedirector.ui.listeners.ApproveThemeActionListener;
|
||||||
import com.arsdigita.bebop.ActionLink;
|
import com.arsdigita.bebop.ActionLink;
|
||||||
import com.arsdigita.bebop.FormProcessException;
|
|
||||||
import com.arsdigita.bebop.GridPanel;
|
import com.arsdigita.bebop.GridPanel;
|
||||||
import com.arsdigita.bebop.Label;
|
import com.arsdigita.bebop.Label;
|
||||||
import com.arsdigita.bebop.Link;
|
import com.arsdigita.bebop.Link;
|
||||||
|
|
@ -211,7 +210,7 @@ public class ThemeContainer extends SimpleContainer
|
||||||
if (m_editForm.isCancelled(state)) {
|
if (m_editForm.isCancelled(state)) {
|
||||||
editFormLink.setVisible(state, true);
|
editFormLink.setVisible(state, true);
|
||||||
m_editForm.setVisible(state, false);
|
m_editForm.setVisible(state, false);
|
||||||
throw new FormProcessException("cancelled");
|
throw new FormProcessException(GlobalizationUtil.globalize("cancelled"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ import com.arsdigita.toolbox.ui.ModalPanel;
|
||||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||||
import com.arsdigita.bebop.FormProcessException;
|
import com.arsdigita.bebop.FormProcessException;
|
||||||
|
import com.arsdigita.themedirector.util.GlobalizationUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is essentially a copy of the CancelListener
|
* This class is essentially a copy of the CancelListener
|
||||||
|
|
@ -43,7 +44,7 @@ public class CancelListener implements FormSubmissionListener {
|
||||||
PageState state = event.getPageState();
|
PageState state = event.getPageState();
|
||||||
if (m_form.isCancelled(state)) {
|
if (m_form.isCancelled(state)) {
|
||||||
m_modalPanel.pop(state);
|
m_modalPanel.pop(state);
|
||||||
throw new FormProcessException("cancelled");
|
throw new FormProcessException(GlobalizationUtil.globalize("cancelled"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue