Passing List<String> as @QueryParam with RestDispatch

28 views
Skip to first unread message

Arpit Tripathi

unread,
Dec 2, 2014, 11:13:23 PM12/2/14
to gwt-pl...@googlegroups.com
I'm passing List<String> as a JAX-RS @QueryParam using RestDispatch. When list is ["a", "b", "c"] on client, I'm receiving ["a,b,c"] on server (list size changed from 3 to 1). The query being sent is http://localhost:888/my/url?list=a,b,c instead of expected http://localhost:888/my/url?list=a&list=b&list=c. I'm using Jersey backend. 

Any pointers to resolve this are appreciated.
Thanks.

Christian Goudreau

unread,
Dec 3, 2014, 8:23:03 AM12/3/14
to gwt-pl...@googlegroups.com
That is still unsupported. QueryParams will use the string representation of the object / primitive. We still need to support iterables.

It is also linked to the fact that @MatrixParam is not yet supported.

Sorry, but we still need to do a little bit of work to support part :D

Christian Goudreau | CEO - Président

--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian Goudreau

unread,
Dec 3, 2014, 8:26:12 AM12/3/14
to gwt-pl...@googlegroups.com

Christian Goudreau | CEO - Président

Arpit Tripathi

unread,
Dec 3, 2014, 10:14:03 AM12/3/14
to gwt-pl...@googlegroups.com
Done. Thanks.

~Arpit
Reply all
Reply to author
Forward
0 new messages