Caution: I just discovered a problem with Tapestry's client-side
JavaScript code when used with Prototype 1.7.  I believe Prototype's
Object.keys() function is no longer tolerant of undefined.  This
breaks some of the Tapestry code for handling Zone updates.

Temporarily, you should include the following monkey-patch:

Tapestry.ZoneManager.prototype.processReply = function(reply) {
  Tapestry.loadScriptsInReply(reply, function() {
    /*
     * In a multi-zone update, the reply.content may be missing, in which case,
     * leave the curent content in place. TAP5-1177
     */
    reply.content != undefined && this.show(reply.content);

    /*
     * zones is an object of zone ids and zone content that will be present in a
     * multi-zone update response.
     */
    reply.zones && Object.keys(reply.zones).each(function(zoneId) {
      var manager = Tapestry.findZoneManagerForZone(zoneId);

      if (manager) {
        var zoneContent = reply.zones[zoneId];
        manager.show(zoneContent);
      }
    });
  }.bind(this));
};

I'll change tapx-prototype to provide this out of the box soon, and
fix it in Tapestry 5.3 in a little bit.


On Wed, Mar 30, 2011 at 10:13 AM, Howard Lewis Ship <hls...@gmail.com> wrote:
> I've resurrected my tapx-prototype module, to patch Tapestry to
> Prototype 1.7 (and Scriptaculous 1.9.0).
>
> It's in my snapshot Maven repository:
>
> http://howardlewisship.com/snapshot-repository/
>
> <dependency>
>  <groupId>com.howardlewisship</groupId>
>  <artifactId>tapx-prototype</artifactId>
>  <version>1.1-SNAPSHOT</version>
> </dependency>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to