CCM NG/ccm-cms: Some fixes for the MultiPartArticle
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4873 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
parent
572c03c6a5
commit
f18cf8dc99
|
|
@ -23,7 +23,6 @@ import com.arsdigita.bebop.Form;
|
||||||
import com.arsdigita.bebop.FormData;
|
import com.arsdigita.bebop.FormData;
|
||||||
import com.arsdigita.bebop.FormProcessException;
|
import com.arsdigita.bebop.FormProcessException;
|
||||||
import com.arsdigita.bebop.Label;
|
import com.arsdigita.bebop.Label;
|
||||||
import com.arsdigita.bebop.Page;
|
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.SaveCancelSection;
|
import com.arsdigita.bebop.SaveCancelSection;
|
||||||
import com.arsdigita.bebop.event.FormInitListener;
|
import com.arsdigita.bebop.event.FormInitListener;
|
||||||
|
|
@ -33,7 +32,6 @@ import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||||
import com.arsdigita.bebop.form.TextField;
|
import com.arsdigita.bebop.form.TextField;
|
||||||
import com.arsdigita.bebop.form.CheckboxGroup;
|
import com.arsdigita.bebop.form.CheckboxGroup;
|
||||||
import com.arsdigita.bebop.form.Option;
|
import com.arsdigita.bebop.form.Option;
|
||||||
import com.arsdigita.bebop.parameters.LongParameter;
|
|
||||||
import com.arsdigita.bebop.parameters.NotNullValidationListener;
|
import com.arsdigita.bebop.parameters.NotNullValidationListener;
|
||||||
import com.arsdigita.bebop.parameters.StringParameter;
|
import com.arsdigita.bebop.parameters.StringParameter;
|
||||||
import com.arsdigita.bebop.parameters.TrimmedStringParameter;
|
import com.arsdigita.bebop.parameters.TrimmedStringParameter;
|
||||||
|
|
@ -73,8 +71,6 @@ public class SectionEditForm extends Form {
|
||||||
private final SectionSelectionModel<? extends MultiPartArticleSection> selectedSectionModel;
|
private final SectionSelectionModel<? extends MultiPartArticleSection> selectedSectionModel;
|
||||||
private final StringParameter selectedLanguageParam;
|
private final StringParameter selectedLanguageParam;
|
||||||
|
|
||||||
private LongParameter textParameter;
|
|
||||||
private ItemSelectionModel selectedTextModel;
|
|
||||||
private MultiPartArticleSectionsStep sectionsStep;
|
private MultiPartArticleSectionsStep sectionsStep;
|
||||||
|
|
||||||
private SaveCancelSection saveCancelSection;
|
private SaveCancelSection saveCancelSection;
|
||||||
|
|
@ -181,11 +177,6 @@ public class SectionEditForm extends Form {
|
||||||
return section;
|
return section;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void register(final Page page) {
|
|
||||||
super.register(page);
|
|
||||||
page.addGlobalStateParam(textParameter);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialise the form. If there is a selected section, ie. this is an
|
* Initialise the form. If there is a selected section, ie. this is an
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import javax.persistence.Table;
|
||||||
|
|
||||||
import org.hibernate.envers.Audited;
|
import org.hibernate.envers.Audited;
|
||||||
import org.libreccm.l10n.LocalizedString;
|
import org.libreccm.l10n.LocalizedString;
|
||||||
|
import org.librecms.CmsConstants;
|
||||||
|
|
||||||
import static org.librecms.CmsConstants.*;
|
import static org.librecms.CmsConstants.*;
|
||||||
|
|
||||||
|
|
@ -53,17 +54,17 @@ import org.librecms.contentsection.ContentItem;
|
||||||
steps = {
|
steps = {
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = ArticlePropertiesStep.class,
|
component = ArticlePropertiesStep.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
||||||
descriptionBundle = "org.librecms.CmsResources",
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
||||||
+ ".description",
|
+ ".description",
|
||||||
order = 1),
|
order = 1),
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = ArticleTextBody.class,
|
component = ArticleTextBody.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.body_text.title",
|
labelKey = "cms.contenttypes.shared.body_text.title",
|
||||||
descriptionBundle = "org.librecms.CmsResources",
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
descriptionKey = "cms.contenttypes.shared.body_text.description",
|
descriptionKey = "cms.contenttypes.shared.body_text.description",
|
||||||
order = 2
|
order = 2
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ import javax.persistence.TemporalType;
|
||||||
import org.hibernate.envers.Audited;
|
import org.hibernate.envers.Audited;
|
||||||
|
|
||||||
import org.libreccm.l10n.LocalizedString;
|
import org.libreccm.l10n.LocalizedString;
|
||||||
|
import org.librecms.CmsConstants;
|
||||||
|
|
||||||
import org.librecms.contentsection.ContentItem;
|
import org.librecms.contentsection.ContentItem;
|
||||||
|
|
||||||
|
|
@ -60,18 +61,18 @@ import static org.librecms.CmsConstants.*;
|
||||||
steps = {
|
steps = {
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = EventPropertiesStep.class,
|
component = EventPropertiesStep.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
||||||
descriptionBundle = "org.librecms.CmsResources",
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
||||||
+ ".description",
|
+ ".description",
|
||||||
order = 1)
|
order = 1)
|
||||||
,
|
,
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = EventTextBody.class,
|
component = EventTextBody.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.body_text.title",
|
labelKey = "cms.contenttypes.shared.body_text.title",
|
||||||
descriptionBundle = "org.librecms.CmsResources",
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
descriptionKey = "cms.contenttypes.shared.body_text.description",
|
descriptionKey = "cms.contenttypes.shared.body_text.description",
|
||||||
order = 2
|
order = 2
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ import com.arsdigita.cms.ui.authoring.multipartarticle.MultiPartArticleSectionsS
|
||||||
|
|
||||||
import org.hibernate.envers.Audited;
|
import org.hibernate.envers.Audited;
|
||||||
import org.libreccm.l10n.LocalizedString;
|
import org.libreccm.l10n.LocalizedString;
|
||||||
|
import org.librecms.CmsConstants;
|
||||||
import org.librecms.contentsection.ContentItem;
|
import org.librecms.contentsection.ContentItem;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
@ -59,19 +60,18 @@ import static org.librecms.CmsConstants.*;
|
||||||
steps = {
|
steps = {
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = MultiPartArticleEdit.class,
|
component = MultiPartArticleEdit.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
||||||
descriptionBundle = "org.librecms.CmsResources",
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
||||||
+ ".description",
|
+ ".description",
|
||||||
order = 1)
|
order = 1)
|
||||||
,
|
,
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = MultiPartArticleSectionsStep.class,
|
component = MultiPartArticleSectionsStep.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.body_text.title",
|
labelKey = "cms.contenttypes.shared.body_text.title",
|
||||||
descriptionBundle
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
= "com.arsdigita.cms.contenttypes.MultiPartArticleResources",
|
|
||||||
descriptionKey = "mparticle.authoring.body_text.description",
|
descriptionKey = "mparticle.authoring.body_text.description",
|
||||||
order = 2)
|
order = 2)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ import com.arsdigita.cms.ui.contenttypes.NewsCreateForm;
|
||||||
|
|
||||||
import org.hibernate.envers.Audited;
|
import org.hibernate.envers.Audited;
|
||||||
import org.libreccm.l10n.LocalizedString;
|
import org.libreccm.l10n.LocalizedString;
|
||||||
|
import org.librecms.CmsConstants;
|
||||||
import org.librecms.contentsection.ContentItem;
|
import org.librecms.contentsection.ContentItem;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
@ -57,18 +58,18 @@ import static org.librecms.CmsConstants.*;
|
||||||
steps = {
|
steps = {
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = NewsPropertiesStep.class,
|
component = NewsPropertiesStep.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
labelKey = "cms.contenttypes.shared.basic_properties.title",
|
||||||
descriptionBundle = "org.librecms.CmsResources",
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
descriptionKey = "cms.contenttypes.shared.basic_properties"
|
||||||
+ ".description",
|
+ ".description",
|
||||||
order = 1)
|
order = 1)
|
||||||
,
|
,
|
||||||
@AuthoringStep(
|
@AuthoringStep(
|
||||||
component = NewsTextBody.class,
|
component = NewsTextBody.class,
|
||||||
labelBundle = "org.librecms.CmsResources",
|
labelBundle = CmsConstants.CMS_BUNDLE,
|
||||||
labelKey = "cms.contenttypes.shared.body_text.title",
|
labelKey = "cms.contenttypes.shared.body_text.title",
|
||||||
descriptionBundle = "org.librecms.CmsResources",
|
descriptionBundle = CmsConstants.CMS_BUNDLE,
|
||||||
descriptionKey = "cms.contenttypes.shared.body_text.description",
|
descriptionKey = "cms.contenttypes.shared.body_text.description",
|
||||||
order = 2
|
order = 2
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue