<
From version < 54.1 >
edited by Marius Dumitru Florea
on 2014/10/14
To version < 55.3 >
edited by Thomas Mortagne
on 2014/10/17
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mflorea
1 +XWiki.ThomasMortagne
Content
... ... @@ -126,10 +126,11 @@
126 126  
127 127  * New URL Tool ##$urltool##: A [[new tool>>extensions:Extension.Velocity Module||anchor="HVelocityTools"]] has been added with one method to parse query string from the URL ##$urltool.parseQuery(String)##. The value returned by this is method is a ##Map<String, List<String>>## which maps parameter names to (possibly multiple) values, and can be passed e.g. directly into ##$escapetool.url(Map<String, ?>)## to convert it back to a string. This is useful e.g. in cases where one want to pass a complete query string around between requests, as it happend for the PDF export; the ##$urltool## allows for a sane deserialization of the value passed around.
128 128  * New Exception Tool ##$exceptiontool##: A [[new tool>>extensions:Extension.Velocity Module||anchor="HVelocityTools"]] to manipulate Java Exceptions (get root cause, convert into String, etc).
129 +* ##$stringtool## moved from ##org.apache.commons.lang3.StringUtils## to ##org.xwiki.text.StringUtils## which extends the first one and add new stuff
129 129  
130 130  == Ability to catch Exceptions from Velocity ==
131 131  
132 -A new Velocity Directive has been added to catch Exceptions from Velocity. In addition a new ###displayUnexpectedException()## velocity macro has also been added to nicely display an exception to the user.
133 +A new Velocity Directive has been added to catch Exceptions from Velocity. In addition a new ###displayUnhandledException()## velocity macro has also been added to nicely display an exception to the user.
133 133  
134 134  For example:
135 135  
... ... @@ -154,7 +154,7 @@
154 154  ...
155 155  <div id="xwikicontent">
156 156   #if ("$!exception" != '')
157 - #displayUnexpectedException($exception)
158 + #displayUnhandledException($exception)
158 158   #else
159 159   $renderedContent
160 160   #end
... ... @@ -274,5 +274,6 @@
274 274  The following APIs were modified since XWiki 6.2:
275 275  
276 276  {{code language="none"}}
277 -<clirr output here>
278 +org.xwiki.extension.Extension: Method 'public org.xwiki.extension.ExtensionIssueManagement getIssueManagement()' has been added to an interface
279 +org.xwiki.extension.Extension: Method 'public org.xwiki.extension.ExtensionScm getScm()' has been added to an interface
278 278  {{/code}}

Get Connected