Search code examples
javajavascripttapestry

Upgrading Tapestry application from 5.0.18 to 5.3.2


I'm upgrading my app from 5.0.18 to 5.3.2 and i get following error. Have made couple of changes and not sure which one causing this error. Nothing from logs. This error pops up on the UI. Following are the changes done.

  • Changed @IncludeStylesheet and @IncludeJavaScriptLibrary to @Import
  • Changed RenderSupport to JavaScriptSupport
  • Changed @ApplicationState to @SessionState

I get following error in the UI.

Function Tapestry.Initializer.activate() does not exist.
Function Tapestry.Initializer.formEventManager() does not exist

Thanks.


Solution

  • It could be as simple as a caching problem. Clear your cache and see if it persists. Otherwise it sounds like you have some custom javascript or javascript from a third party tapestry component laying around that was developed around Tapesty.js of version 5.0.18. Check out the javascript stacktrace on the error and see where the call originates and update the js code.