Version |
Description |
Old Code |
New Code |
2.1.x |
If you implemented your own ObjectFactory or ActionInvocation classes, you will notice that there have been some minor changes to make an "extraContext" Map available for the build* methods. This allows, for instance, access to the Session map during object creation, even before the ActionContext ThreadLocal has been set. |
ObjectFactory.getObjectFactory().buildBean(clazz); |
ObjectFactory.getObjectFactory().buildBean(clazz, extraContext); |
2.0+ |
If you've used the WebWork base classes for building templated tags, you'll run into the refactoring of the UI tags to use common Component classes as the templated back-end. The tags now use these Component classes, as do Velocity and FreeMarker. This allows Velocity and FreeMarker to use the same UI components directly, without pretending to be a JSP page, but it also means you need to refactor your custom tags to use the new API's |
...your code.. |
See the existing UI tags in the 2.2 source |
2.1.x |
If you were not using the Alt Syntax, it is now enabled by default. You can either upgrade or change the Tag Syntax |
<ww:url value="'http://www.yahoo.com'"/> |
<ww:url value="http://www.yahoo.com"/> |
2.1.x |
If you are using FreeMarker and your code uses psuedo properties on collections and maps, you need to modify the code to call methods instead. |
${parameters?size} / ${parameters.size?html} |
${parameters.size()} / ${parameters.get("size")?html} |
2.1.x |
The defaultStack has been renamed to the basicStack. |
<interceptor-ref name="defaultStack"/> |
<interceptor-ref name="basicStack"/> |
2.1.x |
The completeStack has been renamed to the defaultStack. |
<interceptor-ref name="completeStack"/> |
<interceptor-ref name="defaultStack"/> |
2.1.x |
The defaultStack (previously the completeStack) is now the default interceptor stack in webwork-default.xml. In addition, this stack now configures the Workflow Interceptor and the Validation Interceptor to not run if the method names are input, back, or cancel |
N/A |
N/A |
2.1.x |
The component interceptor has been deprecated (along with all WebWork IOC features) and has been removed from the basicStack and completeStack. You'll need to add it back by hand if you wish to use this deprecated feature. |
N/A |
N/A |
2.0+ |
The include tag's page attribute has been deprecated since 1.x and is now removed from 2.2. Please use the value attribute. |
<ww:include page="..."/> |
<ww:include value="..."/> |
2.0+ |
The text tag's value0, value1, value2, and value 3attributes have been deprecated since 1.x and are now removed from 2.2. Please use the param tag instead. |
<ww:text value0="...""/> |
<ww:text><ww:param value="someValue">...</ww:param></ww:text> |
2.0+ |
The session map wrapper (found in ActionContext) has been changed to no longer create sessions for every request. If your application depends on sessions being automatically created, WebWork 2.2 no longer does that. Instead, you must create the session yourself or the session will be created as soon as a value is put in the session Map. |
N/A |
N/A |
2.0+ |
The VUI tags have been removed from WebWork. They haven't been actively worked on in over 4 years and are not used in the community. |
N/A |
N/A |
2.0+ |
The URI of the WebWork TLD was change from webwork to /webwork. If you were already using the packaged TLD from webwork.jar, you will have to adjust URI in your JSPs |
<%@ taglib uri="webwork" prefix="ww" %> |
<%@ taglib uri="/webwork" prefix="ww" %> |
2.0+ |
The default encoding has changed from ISO-8859-1 to UTF-8. If you wish to continue to use ISO-8859-1, you must change your webwork.properties. |
N/A |
webwork.i18n.encoding=ISO-8859-1 |