[Seaside] Re: Re: How do you show the application in the Web

John Thornborrow john at pinesoft.co.uk
Fri Apr 13 11:20:53 UTC 2007


Cédrick Béler wrote:
>
>>
>>
>> Hmm... You didn't understand me and I didn't explain well neither.
>>
>> For example, in the Visual Works I build a simple "Hello world"
>> application, but I don't want to show it in a dialog box, even
>> though, I want to show it in the Web browser like I can display
>> http://localhost:8008/seaside/go/browse
>> http://localhost:8008/seaside/go/counter
>>
>> and more, so what have I to do to get it?
>>
> you want to make a new entrey point for your app ?
> so as to have
> http://localhost:8008/seaside/go/yourApp
>
>
> 2 ways
>
> 1 - override canBeRoot
> YourComponentClass class >> canBeRoot  ^true in the class side of your
> app (I think you did it), so it appear in the drop-down of root
> component when you create a new entry point from
> http://localhost:8008/seaside/go/config
>
> 2 in the class side initialization of your component, add somethink like
>
> YourComponentClass class >> initialize
> self registerAsApplication: 'yourAppName'
>
> but be careful, this method is only executed when you create the
> class. If already created, you should execute it manually.
> YourComponentClass initialize     in a workspace
>
>
> hth ;)
>
> Cédrick
>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
You can also execute

YourRootComponentClass registerAsApplication: 'name'

in a workspace
:)

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