Le vendredi 19 juin 2009 à 13:39 +0200, Joachim Jaeckel a écrit : > Hi Nicolas, > > I'm sorry, but I think that I miss something in my code. Even with the > index-method in the right category, I couldn't reach my "application" > (big word for a 5-liner ;-) through http://localhost:7777/urpics. > > In seaside for instance, I have to do additionally a: > #registerAsApplication and I would think, that I miss something here.
Nop, there is no registration needed in Iliad. > > Only with loading the classes into the vm, while swazoo is running, > could that be all...? (I don't think so...) Yes, that's all! The followiing works for me: PackageLoader fileInPackage: 'Iliad' FileStream fileIn: 'UrPicsApplication.st' "file is attached to this email" Iliad.SwazooIliad startOn: 7777 Processor activeProcess suspend Then the app is available at: http://localhost:7777/urpics > > P.S.: I could help, writing something like a small tutorial (if you'd > like), but I have to understand a bit more of it first. Yes, that would be wonderful :) Cheers! Nicolas
Iliad.Application subclass: UrPicsApplication [
UrPicsApplication class >> path [
^'/urpics'
]
updatePage [
super updatePage.
self page headElement title: 'UrPics - show your pictures!'.
self page headElement stylesheet href: '/resources/style.css'.
]
index [
<category: 'views'>
^[ :e |
e add: UnknownHome new build
]
]
]
Iliad.Widget subclass: UnknownHome [
contents [
^[ :e |
e h1: 'UrPics - show your pictures!'.
]
]
]
signature.asc
Description: Ceci est une partie de message numériquement signée
_______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
