I have defined a on-demand-selector widget and it's lookup-function
is :
(lambda (obj tokens)
     (declare (ignore obj))
     (make-instance 'dataform
           :data (make-instance 'page :title "asdfkj" :text \
"asdfk;l")
; ;                 (nth (parse-integer tokens) (all-pages))
            :data-view 'page-data-view
            :form-view 'page-form-view
    ))

It get be called once with nil as tokens parameter, so I can only
return one widget, but I want to render all pages of wiki.  I try to
take use of the list of remains token, but not success.

On Apr 7, 2:55 pm, "Leslie P. Polzer" <[email protected]> wrote:
> On Apr 7, 7:34 am, netawater <[email protected]> wrote:
>
> > You mean use on-demand-selector to replace wiki-widget?
> > I'm trying and will go on, please see my 
> > post:http://cl-experience.blogspot.com/2009/04/study-selector-widget-i.html
>
> As posted on your blog:
>
> You need to make an ON-DEMAND-SELECTOR with a custom :LOOKUP-FUNCTION
> (as you probably already know).
>
> This selector instance can then be used in place of a normal
> navigation.
>
> The lookup function gets passed two arguments:
>
> 1. the selector object
>
> 2. a list of the remaining tokens
>
> It must return either NIL (not found) or the following multiple
> values: the newly created widget, the list of consumed tokens and the
> list of remaining tokens.
--~--~---------~--~----~------------~-------~--~----~
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