Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Map model property type #2391

Closed
ghost opened this issue Sep 13, 2017 · 2 comments
Closed

Support for Map model property type #2391

ghost opened this issue Sep 13, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 13, 2017

As a Java developer, I want to set a Map<Number|Boolean|String, Number|Boolean|String|Bean> property type so that I can easily have an object property on the client-side with arbitrary key/value pairs. For example:

{
  "someKey": someValue,
  "someOtherKey": someOtherValue
  ...
}

The current workaround for this limitation is to manually copy the Map into a JsonObject and set this via getElement().setPropertyJson(name, jsonObject)

Conversation: https://vaadin.slack.com/archives/C6RAXJATF/p1504876959000295

@pleku
Copy link
Contributor

pleku commented Sep 13, 2017

Same issue for template model #738

@mshabarov
Copy link
Contributor

Implemented in #7308.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants