First try replacing (lambda ..) in your code with (render-widget
(lambda ...)) -- does that work now?

In any case, I would suggest having a page handled by a static
resource, or a navigation widget (or a dispatcher).

Then use a page-not-found as follows:

(defmethod page-not-found-handler ((app app))
  (redirect "/page-not-found"))

A 404 error code is of more semantic value though.


On Feb 17, 12:36 pm, Ababo <[email protected]> wrote:
> 1) sounds not so simple... will try
>
> 2) I can handle the event but still cannot render widgets or I miss
> something.
>
> I mean that I cannot do like this:
>
> (defmethod page-not-found-handler (app)
>   (declare (ignore app))
>   (lambda (&rest args)
>     (declare (ignore args))
>     (with-html (:strong "sub1-text"))))
>
> So how could I render my custom page in this case?
>
> Thanks.
>
> On 17 фев, 13:20, "Leslie P. Polzer" <[email protected]> wrote:
>
>
>
> > Hey Ababo,
>
> > > 1) how can render navigation horizontally? (by default it renders
> > > vertically). I need to implement two levels of navigation: left
> > > vertical pane will represent site root sections switch, while upper
> > > horizontal pane will contain inner subsections.
>
> > Use CSS or subclass the navigation widget.
>
> > > 2) how can I replace not-found page with a custom one?
>
> > Specialize page-not-found-handler for your application.
>
> >   Leslie

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.

Reply via email to