mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- fixed issues with editing spaces
- made topic pages consistent with 1.2 - added ability to force properties to render even if they are not present in the node - changed warnings about missing properties to debug but added a log label to turn it on easily git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2922 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -42,10 +42,12 @@ public class PropertySheetElementReader implements ConfigElementReader
|
||||
public static final String ATTR_SHOW_IN_EDIT_MODE = "show-in-edit-mode";
|
||||
public static final String ATTR_SHOW_IN_VIEW_MODE = "show-in-view-mode";
|
||||
public static final String ATTR_COMPONENT_GENERATOR = "component-generator";
|
||||
public static final String ATTR_IGNORE_IF_MISSING = "ignore-if-missing";
|
||||
|
||||
/**
|
||||
* @see org.alfresco.config.xml.elementreader.ConfigElementReader#parse(org.dom4j.Element)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public ConfigElement parse(Element element)
|
||||
{
|
||||
PropertySheetConfigElement configElement = null;
|
||||
@@ -78,9 +80,11 @@ public class PropertySheetElementReader implements ConfigElementReader
|
||||
|
||||
if (ELEMENT_SHOW_PROPERTY.equals(item.getName()))
|
||||
{
|
||||
String ignoreIfMissing = item.attributeValue(ATTR_IGNORE_IF_MISSING);
|
||||
|
||||
// add the property to show to the custom config element
|
||||
configElement.addProperty(propName, label, labelId, readOnly, converter,
|
||||
inView, inEdit, compGenerator);
|
||||
inView, inEdit, compGenerator, ignoreIfMissing);
|
||||
}
|
||||
else if (ELEMENT_SHOW_ASSOC.equals(item.getName()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user