Release Notes 5.2.2Page added by Howard M. Lewis ShipIt is now possible to generate an absolute URL from a Link object; an absolute URL includes the URL scheme, host, port number (if necessary) followed by the complete path. This is useful in a number of situations, such as when generating a URL that may be e-mailed to an end user. The semantics of the Link.toAbsoluteURL() method has changed; in prior releases it returned a complete URL (i.e., starting with a leading slash), and the method was typically used when generating an Ajax callback URL. Starting in 5.2.2 this generated an absolute URL (as described above). Because Tapestry applications often run behind a firewall, the available Request information about incoming hostname and port is often not accurate (it represents the private request from the firewall server to the application server, whereas the client uses a public request to the firewall server). When using absolute URLs, you will likely want to override the BaseURLSource service to provide accurate values that reflect your application's deployment.
Change Notification Preferences
View Online
|
- [CONF] Apache Tapestry > Release Notes 5.2.2 confluence
- [CONF] Apache Tapestry > Release Notes 5.2.2 confluence
- [CONF] Apache Tapestry > Release Notes 5.2.2 confluence