Issue using RESTful Web Service Test tool
I am using the Restful Web Service Test tool. I need to POST a FormParam which is a list of String like so:
@POST
@Produces("text/plain")
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
.....
2. Have a constructor that accepts a single String argument
3. Have a static method named valueOf that accepts a single String argument (see, for example, Integer.valueOf(String))
4. Be List<T>, Set<T> or SortedSet<T>, where T satisfies 2 or 3 above. The resulting collection is read-only."I am trying to use #4. An example of HTML which should populate it looks like so:<form action="rest/resource method="POST">
<label >Target Collection 1</label><input name="targetCollectionIdList" />
<br/>
<label >Target Collection 2</label><input name="targetCollectionIdList" />
<br/>
<label >Target Collection 3</label><input name="targetCollectionIdList" />
<br/>
<input type="submit" value="Submit" />
</form>
Is this a bug or am I am I missing something in using the tool?
Thanks,
请先登录再写评论。
Thanks for this post.
http://youtrack.jetbrains.net/issue/IDEA-54950