Versions Compared

Key

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

Tapestry 5.7.0 is a new major version which needs a migration step for projects using previous versions. To upgrade, update the dependency in your build configuration (Maven POM, Gradle build script, etc.) – or Download the new JAR file. Please check the 5.7.0 Upgrade Guide section in the bottom of this page below for details. This is a step that only needs to be done once. Please also review the How to Upgrade instructions before upgrading.

...

  • Partial Java 9+ modules (JPMS) support. It's partial because module-info.java classes are not provided yet. On the other hand, Tapestry's JARs don't have split packages anymore, making them easier to be used with Java 9+ modules. Many classes had to be moved to other packages, and sometimes even to a different JAR. The migration tool mentioned above will take care of updating your code so it uses the correct new fully-qualified class names for the ones that were moved and/or renamed.
    • Jira
      serverASF JIRA
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId5aa69414-a9e9-3523-82ec-879b028fb15b
      keyTAP5-2641
      Jira
      serverASF JIRA
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId5aa69414-a9e9-3523-82ec-879b028fb15b
      keyTAP5-2627
  • TypeCoercer now uses mapped configuration so coercion overrides are done in an explicit manner. Please check the 5.7.0 Upgrade Guide section in the bottom of the page for details. 
    • Jira
      serverASF JIRA
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId5aa69414-a9e9-3523-82ec-879b028fb15b
      keyTAP5-2650

Improvements made

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
maximumIssues20
jqlQueryproject ="Tapestry 5" and fixVersion = 5.7.0 and type != bug
serverId5aa69414-a9e9-3523-82ec-879b028fb15b

Bugs fixed

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
maximumIssues20
jqlQueryproject ="Tapestry 5" and fixVersion =5.7.0 and type =bug
serverId5aa69414-a9e9-3523-82ec-879b028fb15b

  • It's not possible to use the Tapestry request handling framework, specially the RequestFilter, Dispatcher, Request, Response and HttpServletRequestFilter classes, without the page framework. These classes were moved to a new artifact, tapestry-http, which can be used in place of tapestry-core (which depends on tapestry-http). tapestry-http Servlet filter class is org.apache.tapestry5.http.TapestryFilter. The original TapestryFilter, from org.apache.tapestry5, can be used in the same way way as in past Tapestry versions. 

5.7.0 Upgrade Guide


The first step is running the source code migration tool:

...

Code Block
public static void provideCoercions(MappedConfiguration<CoercionTuple.Key, CoercionTuple> configuration)
{
    CoercionTuple<String, JSONObject> stringToJsonObject = CoercionTuple.create(
        String.class, JSONObject.class, new StringToJSONObject());
    configuration.add(stringToJsonObject.getKey(), stringToJsonObject);
}

Improvements made

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
maximumIssues20
jqlQueryproject ="Tapestry 5" and fixVersion = 5.7.0 and type != bug
serverId5aa69414-a9e9-3523-82ec-879b028fb15b

Bugs fixed

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
maximumIssues20
jqlQueryproject ="Tapestry 5" and fixVersion =5.7.0 and type =bug
serverId5aa69414-a9e9-3523-82ec-879b028fb15b