|
|
Choosing A Webhost: |
Re: Naming URLs: msg#00076lang.smalltalk.squeak.seaside
On Apr 15, 2004, at 6:00 AM, radoslav hodnicak wrote: In seaside 2.3, override #createRootFromRequest: in your session class to Yes. To set the path, implement #updateUrl: in your components. This will get passed a WAUrl instance, which responds to #addToPath: and #addParameter:value: (and will soon respond to #anchorName:). Each active component gets a chance to modify it before every redirect and response. To initialize your app, subclass WAMain and implement #start:. This will be sent at the beginning of the session, and gets passed a WARequest instance. Typically you will want to use the information in the request to construct a root component, and then start a render loop with that root: (WARenderLoop new root: aComponent) start: aRequest However, you don't have to enter the render loop immediately, or at all - SmallBlog, for example, will simply return a static RSS response for certain URLs. When configuring your application, make sure to choose your new subclass as the Main Class. Avi
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Naming URLs, Julian Fitzell |
|---|---|
| Next by Date: | Re: Naming URLs, Avi Bryant |
| Previous by Thread: | Re: Naming URLs, Samuel Tardieu |
| Next by Thread: | Re: Naming URLs, Avi Bryant |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |