Last modified by Thomas Mortagne on 2017/03/24

Show last authors
1 #startfloatingbox()
2 *Contents*
3 #toc ("2" "4" "")
4 #endfloatingbox()
6 1 Release Notes for XWiki Enterprise 2.0 Milestone 2
8 Second milestone of the XWiki Enterprise 2.0 version ([Roadmap>enterprise:Main.Roadmap]).
10 1.1 New and Noteworthy (since XWiki Enterprise 2.0 Milestone 1)
12 At a glance (see below for details):
13 * Improvements and bug fixes in the GWT WYSIWYG editor
14 * Improvements and bug fixes in the rendering engine
15 * Improvements for the Blog application
16 * It's now possible to choose the content renderer to use when viewing a page
17 * New [xwiki-properties module>extensions:Extension.Properties Module]
18 * New Latvian translation
19 * New Swedish translation
20 * New Korean translation
22 1.1.1 New Wiki rendering 2.0 macros
24 See [platform:DevGuide.WikiMacroTutorial].
26 1.1.1 Output syntax parameter
28 It's now possible to decide which renderer to use to print the document content. For example if you want to generate dome JSON page you can use "?outputSyntax=plain&xpage=plain" to make sure only the content is printed and there is no html syntax printed, just a plain text of what exactly was generated by a velocity macro (without macro markers html comments etc.)
30 See [URL parsing documentation>platform:AdminGuide.URL resolution#HoutputSyntaxandoutputSyntaxVersion].
32 1.1.1 WYSIWYG improvements
34 * Add the ability to configure the colors displayed by the color picker
35 * Allow the page to link to to be searched for or selected from the most recently edited pages
36 * Component Manager should generate event when the component is registered instead of initialized
38 1.1.1 Rendering improvements
40 * New Section editing
41 * Allow default document syntax to be specified in User profile configuration
43 1.1.1 1.0 -> 2.0 syntax converter
45 * Converter should make sure code macro are forced standalone
46 * Converter should make sure to put $msg.get calls in {{html}} macros
47 * Converter should trim code macro content
49 1.1.1 Component Manager api improvements
51 * Add way to directly provide the component instance when register it
52 * Add way to unregister component
54 1.1.1 New xwiki-properties module
56 * Java bean populating support
57 * Java type conversion support
58 * Java bean validation support
60 Among other things this mean the following changes for the 2.0 macros:
61 * any case is supported for macros parameters names
62 * public fields are now supported (not only getters and setters)
63 * java macro parameters bean is validated agains JSR 303 (See )
64 * macro properties java bean can implements RawProperties to get custom non converted parameters
65 * you can add support for any type conversion by implementing Converter component
66 * any Enum conversion is supported (no need to register each Enum subclass agains ConvertUtils anymore)
67 * support for Color conversion
69 See [Properties module documentation>extensions:Extension.Properties Module].
71 1.1.1 Miscellaneous UI improvements
73 * Improved document footer section
74 * Improved tag display and editing
76 1.1.1 Important bugs fixed
78 * XWIKI-4033 - When saving after section edit entire page is overwritten
79 * XWIKI-4043 - Main.AllDocs not showing any documents in a farm
81 1.1 Known issues
83 * [Bugs we know about>]
85 1.1 Backward Compatibility and Migration Notes
87 1.1.1 General Notes
89 #warning("If you're running in a multiwiki setup you'll also need to define the property <tt></tt> to your <tt>xwiki.cfg</tt> file or explicitly name all databases to be migrated as in <tt>,db2,...</tt>.")
91 You may also want to [import the default wiki XAR>Main.Download] in order to benefit from improvements listed above.
93 #warning("Always make sure you compare your <tt>xwiki.cfg</tt> file with the newest version since some configuration parameters were added. Of note, you should add <tt></tt> so that XWiki will attempt to automatically migrate your current database to the new schema. Make sure you backup your Database before doing anything.")
95 1.1.1 API Breakages
97 The following APIs were modified since XWiki Enterprise 2.0M1:
99 * Rendering Module
100 ** <tt>AbstractBlock</tt> constructors has been refactored to make easier to create new common macros. Main change is that the macro author does not have to provide the MacroDescriptor anymore.
101 ** Macro parameters bean are now supposed to use xwiki-properties annotations instead of <tt>org.xwiki.rendering.macro.descriptor.annotation.\*</tt> annotations. Simply change <tt>org.xwiki.rendering.macro.descriptor.annotation.Parameter\*</tt> by <tt>\*</tt> to upgrade you macro parameters bean.
102 ** Details:\\{code:none}
103 [ERROR] org.xwiki.rendering.block.AbstractBlock: Method 'public void setParameter(java.lang.String, java.lang.Object)' has been removed
104 [ERROR] org.xwiki.rendering.macro.AbstractMacro: Parameter 1 of 'public AbstractMacro(org.xwiki.rendering.macro.descriptor.MacroDescriptor)' has changed its type to java.lang.String
105 [ERROR] org.xwiki.rendering.macro.AbstractMacro: Method 'protected void registerConverter(org.apache.commons.beanutils.Converter, java.lang.Class)' has been removed
106 [ERROR] org.xwiki.rendering.macro.AbstractMacroSource: Class org.xwiki.rendering.macro.AbstractMacroSource removed
107 [ERROR] org.xwiki.rendering.macro.MacroManager: Removed java.lang.Comparable from the set of implemented interfaces
108 [ERROR] org.xwiki.rendering.macro.MacroManager: Method 'public int getPriority()' has been removed
109 [ERROR] org.xwiki.rendering.macro.MacroSource: Class org.xwiki.rendering.macro.MacroSource removed
110 [ERROR] org.xwiki.rendering.macro.descriptor.AbstractMacroDescriptor: Parameter 3 of 'public AbstractMacroDescriptor(java.lang.String, org.xwiki.rendering.macro.descriptor.ContentDescriptor, java.lang.Class)' has changed its type to
111 [ERROR] org.xwiki.rendering.macro.descriptor.AbstractMacroDescriptor: Method 'protected java.lang.annotation.Annotation extractParameterAnnotation(java.lang.reflect.Method, java.lang.reflect.Method, java.lang.Class)' has been removed
112 [ERROR] org.xwiki.rendering.macro.descriptor.AbstractMacroDescriptor: Method 'protected void extractParameterDescriptor(java.beans.PropertyDescriptor, java.lang.Object)' has been removed
113 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultMacroDescriptor: Parameter 3 of 'public DefaultMacroDescriptor(java.lang.String, org.xwiki.rendering.macro.descriptor.ContentDescriptor, java.lang.Class)' has changed its type to
114 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultMacroDescriptor: Method 'public DefaultMacroDescriptor(java.lang.String, java.lang.Class)' has been removed
115 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor: In method 'public DefaultParameterDescriptor()' the number of arguments has changed
116 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor: Method 'public void setDefaultValue(java.lang.Object)' has been removed
117 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor: Method 'public void setDescription(java.lang.String)' has been removed
118 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor: Method 'public void setMandatory(boolean)' has been removed
119 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor: Method 'public void setName(java.lang.String)' has been removed
120 [ERROR] org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor: Method 'public void setType(java.lang.Class)' has been removed
121 [ERROR] org.xwiki.rendering.macro.descriptor.annotation.ParameterDescription: Class org.xwiki.rendering.macro.descriptor.annotation.ParameterDescription removed
122 [ERROR] org.xwiki.rendering.macro.descriptor.annotation.ParameterHidden: Class org.xwiki.rendering.macro.descriptor.annotation.ParameterHidden removed
123 [ERROR] org.xwiki.rendering.macro.descriptor.annotation.ParameterMandatory: Class org.xwiki.rendering.macro.descriptor.annotation.ParameterMandatory removed
124 [ERROR] org.xwiki.rendering.renderer.PrintRendererFactory: Method 'public java.util.List getAvailableSyntaxes()' has been added to an interface{code}

Get Connected