[Bese-devel] ucw:a & action parameters other than self

Aleksandar Bakic a_bakic at yahoo.com
Mon Apr 17 10:56:01 UTC 2006


Actually, in your solution, you do not need to rebind as you evaluate i early
(and you said it worked :).

Alex

--- Evrim ULU <evrim at core.gen.tr> wrote:

> it seems below snippet solves the problem, don't sure if it is the best
> solution in this case.
> 
>  (loop
>      for i from 1 to number-of-pages
>      do
>      (if (eq current-page i)
>          (<:as-html i " ")
>          (eval `(<ucw:a :action (scroll-to-page ,self ,i)
>                 :id ,(format nil "page-~A" i)
>                 (<:as-html ,i " ")))))
> 
> >--- inside render ---
> >(loop
> >     for i from 1 to number-of-pages
> >     do
> >     (if (eq current-page i)
> >         (<:as-html i " ")
> >         (<ucw:a :action (scroll-to-page self i)
> >             :id (format nil "page-~A" i)
> >             (<:as-html i " "))))
> >---- render ends ---
> >
> >(defaction scroll-to-page ((self pager) to-page)
> > bla bla..)
> >  
> >
> 
> _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the bese-devel mailing list