[racket] ordering issue in select-input formlet
I just pushed a patch that should resolve this.
(The elements are added to a hash to get them back when the request
gets submitted and were put into the page in hash order, which is not
consistent. I changed it slightly to use the original order.)
Jay
2011/3/29 Eric Tanter <etanter at dcc.uchile.cl>:
> Hi,
>
> I'm using the select-input formlet in a form. I pass it a list and a display function, but it gets displayed in a wrong (arbitrary) order.
>
> In my app the list is built by hand:
> (define USERS (list (user "john" "j at foo.com")
> (user "joe" "j at bar.com") ...))
>
> and the formlet displays the list as:
>
> ... (td ,{(select-input USERS #:display user-name) ...
>
> any idea why the names do not show up in the expected order?
>
> Thanks,
>
> -- Éric
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay
"The glory of God is Intelligence" - D&C 93