Hi Jan-Willem

sorry not to reply on this question before now.

Short answer is that this isn't part of the Restful Objects spec, and
therefore isn't possible currently.  That said, I do think that the Naked
Objects .NET implementation has made some small extensions to the spec to
support this capability, but I don't know the exact details.

By all means raise a JIRA ticket on this (though I don't know exactly when
it would be implemented).  If you're really need the feature then I'll be
happy to provide some pointers as to how you might implement it and
contribute back.

Thanks
Dan


On 29 May 2016 at 12:55, Jan-Willem Gmelig Meyling <
[email protected]> wrote:

>
>
> Hey all,
>
> I've been wondering how I could nicely implement a collection of Enums
> as input for an Action. The values do not come from an persisted entity,
> as it would be part of as I imagine it to be a request POJO.
>
> I know that HTTP headers allow a path parameter to be defined multiple
> times. So an EnumSet is usually seen as "?foo=BAR&foo=BAZ". In Jackson I
> would use the Enum to String serialization and end up with something
> similar to : { "foo" : [ "BAR", "BAZ"] }
>
> I currently transformed my options to booleans so that they become
> visible as checkboxes, but I was wondering how to do this properly.
>
> Any response is very much appreciated,
>
> Kind regards,
>
> Jan-Willem

Reply via email to