Changes for page Properties Module
Last modified by Vincent Massol on 2021/03/17 21:12
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. ThomasMortagne1 +xwiki:XWiki.VincentMassol
- ExtensionCode.ExtensionClass[0]
-
- Description
-
... ... @@ -25,13 +25,19 @@ 25 25 Then it's possible to tweak this behavior with annotations: 26 26 27 27 * ##org.xwiki.properties.annotation.PropertyDescription##: a text describing the property 28 -* ##org.xwiki.properties.annotation.PropertyHidden##: indicate that the property should not be taken into account by BeanManager 29 -* ##org.xwiki.properties.annotation.PropertyMandatory##: indicate that an error should be generated when no value is provided in the Map for this property when populating. 28 +* ##org.xwiki.properties.annotation.PropertyHidden##: indicates that the property should not be taken into account by BeanManager 29 +* ##org.xwiki.properties.annotation.PropertyMandatory##: indicates that an error should be generated when no value is provided in the Map for this property when populating. 30 30 * ##org.xwiki.properties.annotation.PropertyName##: a text with the display name of the field 31 -* [since 6.3] ##org.xwiki.properties.annotation.PropertyId##: overwrite the property identifier 31 +* {{info}}since 6.3{{/info}} ##org.xwiki.properties.annotation.PropertyId##: overwrite the property identifier 32 +* {{info}}since 10.10{{/info}} ##org.xwiki.properties.annotation.PropertyAdvanced##: indicates that the property is to be used by more advanced users 33 +* {{info}}since 10.11{{/info}} ##org.xwiki.properties.annotation.PropertyGroup##: used to group properties together 34 +* {{info}}since 10.11{{/info}} ##org.xwiki.properties.annotation.PropertyFeature##: binds a property to a feature (two properties can be used for the same feature) 35 +* {{info}}since 11.0{{/info}} ##org.xwiki.properties.annotation.PropertyDisplayType##: overrides the type of the property for display only (e.g. WYSIWYG) 32 32 33 33 Finally default implementation of BeanManager support [[JSR 303 (Bean Validation)>>http://jcp.org/en/jsr/detail?id=303]] if an implementation can be found. 34 34 39 +==== Example ==== 40 + 35 35 {{code language="java"}} 36 36 /** 37 37 * Parameters for the {@link org.xwiki.rendering.internal.macro.include.IncludeMacro} Macro. ... ... @@ -136,7 +136,6 @@ 136 136 assertNull(bean.getHiddenProperty()); 137 137 {{/code}} 138 138 139 - 140 140 === Get bean descriptor === 141 141 142 142 It's possible to ask BeanManager descriptor generated from a Java Bean for easy listing of properties, values, etc. For example this is used to fill ##ParameterDescriptor##s of most of the Java-based macros. ... ... @@ -156,6 +156,7 @@ 156 156 * ##java.awt.Color## 157 157 * ##java.util.Locale## 158 158 * ##org.xwiki.rendering.syntax.Syntax## 164 +* ##org.xwiki.component.namespace.Namespace## 159 159 160 160 === Convert a value in a target Java type === 161 161 ... ... @@ -290,5 +290,6 @@ 290 290 {{/code}} 291 291 292 292 ==== Apache ConvertUtils Converter ==== 299 + 293 293 294 294 When convert manager can't find a specific converter for a type it uses Apache ConvertUtils. See http://commons.apache.org/beanutils/ for more details. - Show installed count
-
... ... @@ -1,0 +1,1 @@ 1 +Yes