[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST
From: |
Nicolas Petton |
Subject: |
Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST |
Date: |
Fri, 19 Jun 2009 12:39:55 +0200 |
Hi Joachim,
Your application is in fact running. You don't have to do anything to
make your application available, as long as it has a path.
The problem you encounter is that your application dispatchs the
request, but return a 404 error, because there is no view method in your
application.
The #index method should be the default view method, but its category
isn't 'views', so it isn't. This may look a bit odd, but take a look at
Iliad.Application class >> selectorFilter and #defaultSelectorFilter,
you may understand it better.
By default, only methods in the 'views' protocol can be used as view
methods, so the fix here is very simple:
index [
<category: 'views'>
^[:e |
e add: UnknownHome new build]
]
If you want, you can supply your own selectorFilter block and override
#dispatchOverride (see #dispatch method comment for more infos).
HTH,
Nico
signature.asc
Description: Ceci est une partie de message numériquement signée
- [Help-smalltalk] [ANN] a new lightweight web framework for GST, Nicolas Petton, 2009/06/16
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Stefan Schmiedl, 2009/06/16
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Gwenael Casaccio, 2009/06/17
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Joachim Jaeckel, 2009/06/18
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST,
Nicolas Petton <=
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Joachim Jaeckel, 2009/06/19
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Paolo Bonzini, 2009/06/19
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Joachim Jaeckel, 2009/06/19
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Paolo Bonzini, 2009/06/19
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Nicolas Petton, 2009/06/19
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Joachim Jaeckel, 2009/06/19
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Stefan Schmiedl, 2009/06/19
- Re: [Help-smalltalk] [ANN] a new lightweight web framework for GST, Paolo Bonzini, 2009/06/19