[EMF Forms] Iterating over properties [message #1757858] |
Mon, 20 March 2017 19:37 |
Alex Kravets Messages: 561 Registered: November 2009 |
Senior Member |
|
|
Hi,
I'd like to use EMF Forms to render the following XML
<properties>
<group="1">
<property name="g1p1"/>
<property name="g1p2"/>
<property name="g1p3"/>
</group>
<group="2">
<property name="g2p1"/>
<property name="g2p2"/>
<property name="g2p3"/>
</group>
</properties>
What I'd like to do is render form in a such a way that properties element is iterated and groups with its property elements are rendered in sections. Do I need to create three different renders (properties, groups, property) and embed one in another? Or is there better design pattern for this?
Thanks,
Alex
[Updated on: Mon, 03 April 2017 14:53] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: [EMF Forms] [message #1758886 is a reply to message #1758832] |
Tue, 04 April 2017 07:25 |
Jonas Helming Messages: 111 Registered: September 2016 |
Senior Member |
|
|
Hi,
without knowing the detail about your use case:
Even if you only use custom renderers, using EMF Forms is typically an advantage. You should have a defined renderer now ideally with a custom view model element. Now you can reuse this and you can adapt the renderer at a central place. Further, you can embedd it and use it in combination with other view model elements. If you know for sure, that your view will always only show the custom content, that you never adapt it again and you will never use it anywhere else then yes, in this unlikely case EMF Forms does not really provide an advantage.
Best regards
Jonas
--
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
--
Jonas Helming
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
|
|
|
Powered by
FUDForum. Page generated in 0.04108 seconds