[Bese-devel] ucw:a & action parameters other than self
Evrim ULU
evrim at core.gen.tr
Mon Apr 17 01:47:32 UTC 2006
Hi,
i'm trying to build a simple pager. When scroll-to-page action is
called, to-page parameter is always "number-of-pages", not the current
value of the iterator since loop increments the value of i. how can i
avoid this problem? i've tried :action `(scroll-to-page ,self ,i) but
didn't help :(
--- 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..)
kind regards,
evrim.
More information about the bese-devel
mailing list