Josef
Josef

Reputation: 1532

Use Vaadin for OfBiz website

I am not quite an expert with all the Java EE things, so this is challenging for me: I want to use the Vaadin Framework for the GUI of parts of an application built in OFbiz. I have OFbiz running and a new module in the hot-deploy folder. I also have a Vaadin application that does some stuff. Both are separate and run in different Tomcat instances. How would I be able to start them in the same Tomcat?

Vaadin should be integrated at a specific place in OFBiz, so I thought about using this method to embed it into a div. It looks like this should work if Vaadin only gets the requests with the /VAADIN/ prefix in Tomcat, is that right? This shouldn't disturb OFBiz then?

Or should I use something else than OFBiz for the data model. We probably want to use OFBiz for some of it's ERP/Shop functionality in the future, so I thought it would be good to start using it. But we absolutely need to use Vaadin for the GUI.

Upvotes: 0

Views: 613

Answers (3)

Hans Bakker
Hans Bakker

Reputation: 33

We are currently working with Vaadin in OFBiz but with a deeper integration:

  1. create a program to convert ofbiz screens/forms to vaadin UI files
  2. make Vaadin also use the controller.xml
  3. let vaadin execute groovy instead of java files....
  4. Integrate OFBiz groovy dsl in Vaadin screen definitions

A work in progress at our git repository at: git clone https://gerrit.antwebsystems.com/vaadin-test

Upvotes: 1

yuri0x7c1
yuri0x7c1

Reputation: 111

Check this vaadin-test ofbiz component https://github.com/yuri0x7c1/vaadin-test

Upvotes: 4

Bilgin Ibryam
Bilgin Ibryam

Reputation: 3395

OFBiz has the best OOTB data model for business applications. And Vaading has the best UI for backend/business applications. In my opinion the two are natural choice. I have put them together in the past for a POC. Each component in OFBiz is a web app and you can add the Vaading artifacts in the component (web-inf, lib, cannot remember exact location now). The point is, when you start OFBiz your component will be deployed and Vaading started. Then you can access entity manager and service dispatcher from your Vaadin application and start creating forms, lists, tables...

Upvotes: 2

Related Questions