Update for REST-full URLs in Pier

Pier is built on top of Seaside and has always provided REST-full URLs. After a request in the Pier mailing-list I’ve published a new version that enables developers to easily generate different kinds of URLs:

  • #url returns an URL to the receiving context. No session information included with this URL, but the current page, command and view is preserved. It is save to bookmark this URL and to give it to your friends, as it contains no session reference.
  • #urlOn: returns an URL to the receiving context. All the session information is included and therefor it will make sure that all application state remains persistent. The receiving context instance will be activated when browsing this to this URL, triggered through a Seaside callback. When the session eventually expires the URL has the same effect as #url.

Now this is a nice example on how to do REST-full Seaside applications.

Posted by Lukas Renggli at 3 February 2007, 10:29 pm with tags seaside, pier link