<div dir="ltr">that worked. It never hit me that the name of the variable could include the square brackets. <div style>Very cool! Thanks!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 9, 2013 at 12:34 PM, Matthew Curry <span dir="ltr"><<a href="mailto:mjcurry@gmail.com" target="_blank">mjcurry@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You're still not using the parameter name "task[]".<br>
<br>
Try:<br>
<div class="im"> (define-easy-handler (task-prioritize-url-handler :uri<br>
*task-prioritize*) ((task[] :parameter-type 'list)) (task-prioritize<br>
</div>task[]))<br>
<br>
-Matt<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Sat, Feb 9, 2013 at 2:19 PM, Jim Barrows <<a href="mailto:jim.barrows@gmail.com">jim.barrows@gmail.com</a>> wrote:<br>
> Fixed that, and it didn't work. I went through all three permutations<br>
> (define-easy-handler (task-prioritize-url-handler :uri *task-prioritize*)<br>
> ((task :parameter-type 'list)) (task-prioritize task))<br>
><br>
> results in:<br>
> [2013-02-09 12:18:40 [DEBUG]] task-prioritize NIL<br>
><br>
> [2013-02-09 12:18:40 [DEBUG]] parameters ((task[] . 37) (task[] . 38)<br>
> (task[] . 36))<br>
><br>
><br>
> On Sat, Feb 9, 2013 at 11:47 AM, Ala'a Mohammad <<a href="mailto:amalawi@gmail.com">amalawi@gmail.com</a>> wrote:<br>
>><br>
>> the parameter name is "task[]", not "tasks" used as a default name for<br>
>> the 'tasks' parameter in the easy handler.<br>
>><br>
>> try using real-name<br>
>><br>
>> HiH<br>
>><br>
>> Ala'a<br>
>><br>
>> On Sat, Feb 9, 2013 at 10:42 PM, Jim Barrows <<a href="mailto:jim.barrows@gmail.com">jim.barrows@gmail.com</a>><br>
>> wrote:<br>
>> > I'm a Lisp newbie trying to use the jquery ui sortable widget<br>
>> > (<a href="http://api.jqueryui.com/sortable/" target="_blank">http://api.jqueryui.com/sortable/</a>) to sort a list of tasks.<br>
>> > The plugin posts the list of tasks as:<br>
>> ><br>
>> > task[]:<br>
>> > 37<br>
>> > task[]:<br>
>> > 36<br>
>> > task[]:<br>
>> > 38<br>
>> ><br>
>> ><br>
>> > Which Hunchentoot sees as:<br>
>> > [2013-02-09 11:15:34 [DEBUG]] parameters ((task[] . 37) (task[] . 36)<br>
>> > (task[] . 38))<br>
>> ><br>
>> > However, when I use this handler:<br>
>> > (define-easy-handler (task-prioritize-url-handler :uri<br>
>> > *task-prioritize*)<br>
>> > (tasks) (task-prioritize tasks))<br>
>> ><br>
>> > I get:<br>
>> > [2013-02-09 11:38:52 [DEBUG]] task-prioritize NIL<br>
>> ><br>
>> > [2013-02-09 11:38:52 [DEBUG]] parameters ((task[] . 36) (task[] . 38)<br>
>> > (task[] . 37))<br>
>> ><br>
>> > If I use:<br>
>> > (define-easy-handler (task-prioritize-url-handler :uri<br>
>> > *task-prioritize*)<br>
>> > ((tasks :parameter-type 'array)) (task-prioritize tasks))<br>
>> > I get:<br>
>> > [2013-02-09 11:36:07 [DEBUG]] task-prioritize #()<br>
>> ><br>
>> > [2013-02-09 11:36:07 [DEBUG]] parameters ((task[] . 37) (task[] . 36)<br>
>> > (task[] . 38))<br>
>> ><br>
>> > If I use:<br>
>> > (define-easy-handler (task-prioritize-url-handler :uri<br>
>> > *task-prioritize*)<br>
>> > ((tasks :parameter-type 'list)) (task-prioritize tasks))<br>
>> > I get:<br>
>> > [2013-02-09 11:37:32 [DEBUG]] task-prioritize NIL<br>
>> ><br>
>> > [2013-02-09 11:37:32 [DEBUG]] parameters ((task[] . 37) (task[] . 36)<br>
>> > (task[] . 38))<br>
>> ><br>
>> > My understanding from the documentation is that I should end up with a<br>
>> > list<br>
>> > of id's in the var task when is all said and done. Could someone tell<br>
>> > me<br>
>> > what I'm doing wrong that that isn't happening? Or help clarify my<br>
>> > understanding?<br>
>> ><br>
>> > Thanks so much!<br>
>> > --<br>
>> > James A Barrows<br>
>> ><br>
>> > _______________________________________________<br>
>> > tbnl-devel site list<br>
>> > <a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
>> > <a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
>><br>
>> _______________________________________________<br>
>> tbnl-devel site list<br>
>> <a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
>> <a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
><br>
><br>
><br>
><br>
> --<br>
> James A Barrows<br>
><br>
> _______________________________________________<br>
> tbnl-devel site list<br>
> <a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
> <a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
<br>
_______________________________________________<br>
tbnl-devel site list<br>
<a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>James A Barrows<br>
</div>