Open eclipse-ecp-bot opened 8 months ago
By Stefan Dirix on Sep 05, 2019 12:20
Thanks for the question.
When you want to move the whole application as is without rewriting it, your best bet is to use RAP. RAP needs a server where the "original" application is running with a reimplemented SWT stack which sends the graphical information to the user's browser. The user's actions are then send back to the server, where they are executed. The application is updated and the new graphical information is send back. This works but has nothing to do with client side web applications.
If you want to move to a pure web app, based solely on a typical web stack, like Javascript, React, Angular etc. you'll need to reimplement a lot of functionality. Luckily for EMF Forms-based applications we implemented a tool which can help you achieve that.
We maintain JSON Forms (https://jsonforms.io/) which works similarly to EMF Forms. EMF Forms uses EMF (data description) and EMF Forms view models (ui description) to render the UI. JSON Forms uses JSON Schema (data description) and JSON Forms view models (ui description) to render the UI in the web. We implemented a converter which can translate EMF models and EMF Forms view models to JSON Schema and JSON Forms view models. You can find more information about that in this tutorial (https://eclipsesource.com/blogs/tutorials/emf-forms-and-json-forms-integration-guide/).
This conversion might help you to transition quickly from an Eclipse/EMF/EMF Forms-based application to a web application. As always this depends on your exact requirements and your customization needs.
I hope I was able to help you. Let me know if you have further questions.
By Nithyapriya K on Sep 06, 2019 09:48
Hi,
Thanks for your reply.
By Nithyapriya K on Sep 09, 2019 07:44
Hi,
Is JSON forms supports Angular2+?\ if its supports, there is any sample code or documentation is available?
By Stefan Dirix on Sep 09, 2019 10:25
We are currently targeting Angular 7 and plan to target Angular 8 with one of our next releases. See https://github.com/eclipsesource/jsonforms-angular-material-playground for an example integration of JSON Forms and Angular.
If you want more information about JSON Forms, please take a look at its website (https://jsonforms.io/) and Github repository (https://github.com/eclipsesource/jsonforms).
Feel free to ask all your questions and connect with the JSON Forms community in the public Spectrum forum: https://spectrum.chat/jsonforms
By Nithyapriya K on Sep 10, 2019 01:33
Thanks for your reply.\ One more doubt,\ Is there any possibility to parse xmi files to json forms? Because in our project, currently emf forms are saved as .xmi file and rendered by RAP tools.\ we want to migrate the existing project into angular for better user experience.\ Please help me on this.
By Stefan Dirix on Sep 10, 2019 03:24
I'm assuming the .xmi files you mentioned contain your saved instance data. We don't have a converter for them. You could either transfer your data manually to JSON (if it's not too much) or write your own converter.
Alternatively you could use Jackson (http://emfjson.org/projects/jackson/latest/) to convert your data to JSON, note however that it may output the data in a different format than described by the generated JSON Schema of JSON Forms. So to use it with JSON Forms you will probably have to do a pass over the data and modify it.
Aug 31, 2021 05:23
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.
If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
--\ The automated Eclipse Genie.
Aug 22, 2023 04:50
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.
If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
--\ The automated Eclipse Genie.
| --- | --- | | Bugzilla Link | 550780 | | Status | NEW | | Importance | P3 critical | | Reported | Sep 05, 2019 02:10 EDT | | Modified | Aug 22, 2023 04:50 EDT | | Reporter | Nithyapriya K |
Description
In my projects, EMF Forms Application are rendered using RAP.I am a UI developer. I don't know much about EMF and how it's rendered using RAP or any other tool.So i want to render the application using any UI technologies like Angular. Is there any possibility to render the application using angular?