Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Datepicker tag is now using dojo's (limited in terms functionality and internationalization)
  • Various changes to ConfigurationManager
    • ConfigurationManager is no longer a static factory. It is now an instance created through Dispatcher. Custom configuration could be done through DispatcherListener.
    • Configuration is no longer statically accessible, it is created by ConfigurationManager. Custom configuration could be done through ConfigurationManager which in turns could be configured through DispatcherListener.
    • Custom configuration to ConfigurationManager and Configuration cannot be done statically anymore, instead use Dispatcher's DispatcherListener to achieve such effect.
  • The prepare interceptor now uses reflection to call prepareXxx where Xxx is the action method configured for the particular action in struts.xml
    Code Block
       <action name="myAction" method="execute" ....>
         .....
       </action>
    
       // with the above configuration, and preparator interceptor in place, call
       // sequence will be 
       1] prepareExecute()
       2] prepare() (could be left out depending on interceptor's alwaysInvokePreapre parameter)
       3] execute()
    
  • Default workflow interceptor (named workflow in struts-default.xml) now uses reflection to call validateXXX on the action class that implements Validateable interface where XXX is the action method configured for the particular actionin struts.xml.
    Code Block
    
    <action name="myAction" method="execute" ...>
           ...
        </action>
    
        // with the above configuration, and workflow interceptor in place, call
        // sequence for action that imlpements Validateable interface will be 
        1] validateExecute()
        2] validate() (could be left out depending on interceptor's alwaysInvokeValidate parameter)
        3] execute()
    

Removed or deprecated

action!alias

The "action!alias" syntax is deprecated. The idiom is disabled by default, but it can be enabled via the struts.compatibilityMode.WebWork property setting. This setting will be removed in a future release.

AroundInterceptor

The AroundInterceptor has been removed. If your application extends the AroundInterceptor, either import the class into your source code form WebWork 2 (pursuant to the Open Symphony License) and modify it to server as your own base class, or rewrite your interceptor.

oldSyntax

Support for the "oldSyntax" is removed .

Rich text editor tag

Rich text editor tag has been removed (a possible replacement would be to use the textarea tag with theme="ajax", this will used dojo's rich text editor)

Code Block
 <s:textarea theme="ajax" /> 

doAlias

The convention of trying a "do" form of an alias is not supported.

...