[Seaside] REST-ful urls

John Thornborrow john at pinesoft.co.uk
Fri Jun 1 13:58:53 UTC 2007


Hello all,

I am currently creating a web-app that will use REST-ful urls for page
identification, allowing users to use direct urls for pages, rather than
every new session starting at the main page.

Currently I have employed a method akin to that of Apache's Rewrite. For
example, I can enter the url:
http://localhost:9090/seaside/pinesoft/blog to directly access the blog
section of my site. However, when I do so, the link will change (due to
Seasides 'double page load') back to
http://localhost:9090/seaside/pinesoft?_k=foo&_s=bar.

I have been looking through the codebase, trying to find where I can
update the url value to keep the original value but have not been able
to find anything of particular use.

Currently I am using the override of #initialRequest: on my root
component to decipher the url and depict which process I am to invoke
for the page. This works fine, with the exception of the url reverting.
Does anyone have any information as to how I may be able to maintain the
url state?

Thanks,
John.
www.pinesoft.co.uk


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com



More information about the Seaside mailing list