[CONF] Apache Tapestry > Release Notes 5.2.2

2011-01-16 Thread confluence







Release Notes 5.2.2
Page moved by Bob Harner






From: 

Apache Tapestry
> Release Notes


To: 

Apache Tapestry
> Release Notes 5.2





Children moved






   
Change Notification Preferences
   
   View Online
   









[CONF] Apache Tapestry > Release Notes 5.2.2

2010-10-24 Thread confluence







Release Notes 5.2.2
Page edited by Howard M. Lewis Ship


 Changes (3)
 



It 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 generateds an absolute URL (as described above). In most cases, you should change code that invoked {{toAbsoluteURL()}} with a call to {{toURL()}} instead; because Tapestry no longer 'optimizes' URLs, this will work for Ajax cases as well. 
 
Because Deployed 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. 
 {html}   Bug  [ [ [ [ [ [ [ [ [ [ [   Improvement  [ [ [ [ [ [ [ [ [ [   New Feature  [   Task  [   {html} 

Full Content

It 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 generates an absolute URL (as described above). In most cases, you should change code that invoked toAbsoluteURL() with a call to toURL() instead; because Tapestry no longer 'optimizes' URLs, this will work for Ajax cases as well.

Deployed 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.




Bug

[TAP5-708] - Element.forceAttribute uses the element's namespace to match the attribute.
[TAP5-709] - Element.attribute(String name, String value) adds elements that already exist
[TAP5-804] - Element#addClassName can create an additional new 'class' attribute
[TAP5-921] - Properties defined in an Interface are not exposed by PropertyAccess for abstract classes that do not directly implement the methods
[TAP5-1287] - Some services require a notification that they have been reloaded, so they can clean up external dependencies
[TAP5-1293] - Whitespaces in SymbolConstants.SUPPORTED_LOCALES cause that locales are not persised
[TAP5-1294] - Validation macros do not work when used in @Validate annotation
[TAP5-1297] - Client-side validation of @Pattern is broken
[TAP5-1303] - Linking a Form to a Zone will no longer work unless the Form contains validated fields
[TAP5-1304] - When using PropertyShadowBuilder to build a service, if the property is null, an immediate exception is needed (rather than a NullPointerException)
[TAP5-1309] - When using a MultiZoneUpdate, Tapestry will clear the referenced zone


Improvement

[TAP5-538] - Add the facility to optionally disable on-focus-change triggered validation while retaining the on-form-submit validation
[TAP5-874] - Form component should be able to render a secure URL even on an insecure page
[TAP5-1272] - New annotations @Decorate and @Advise to identify methods that decorate or annotate services 
[TAP5-1291] - Extend Link with new methods for producing absolute URLs (that include scheme, hostname, etc.)
[TAP5-1295] - Simplify connecting a link or form to an (enclosing) Zone
[TAP5-1298] - BeanBlockContribution should be split into two sub-classes: EditBlockContribution and DisplayBlockContribution
[TAP5-1300] - Define a special CSS class to prevent a client-side form from submitting normally (for Ajax use cases)
[TAP5-1306] - Additional method for Link: addParameterValue(String,Object) that uses ContextPathEncoder to encode object value to a string
[TAP5-1314] - SeleniumTestCase should expose the underlying

[CONF] Apache Tapestry > Release Notes 5.2.2

2010-10-20 Thread confluence







Release Notes 5.2.2
Page  added by Howard M. Lewis Ship

 

 It 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