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

Vaadin 10 #2

Open
gpallas16 opened this issue Oct 4, 2018 · 6 comments
Open

Vaadin 10 #2

gpallas16 opened this issue Oct 4, 2018 · 6 comments
Assignees
Labels

Comments

@gpallas16
Copy link

Hi. I like this technique and I am trying to implement it in my project but it seems Vaadin 10 doesn't work like that. Any tips or quick fix on how to do this with Vaadin 10?

@jreznot jreznot self-assigned this Oct 5, 2018
@jreznot
Copy link
Contributor

jreznot commented Oct 5, 2018

Conceptually, all the stuff should work for Vaadin 10, the only difference is the way you start Jetty (servlets and setup changed in V 10). I did not try this with V 10, so cannot say what is wrong with it.

@gpallas16
Copy link
Author

Well after a lot of tries I have not managed to make it work. So I followed your tutorial here and your example app. Everything is working perfectly but I have (hopefully) one last question. I am currently executing java methods in javascript and vice versa but in some cases I want to pass arguments in the methods ie mainWindow.webContents.executeJavaScript("addText("+ jsonArray +");"); is something like that possible? Thank you for your time :)

@jreznot
Copy link
Contributor

jreznot commented Oct 5, 2018

Sure, its possible, see examples here https://github.com/jreznot/electron-java-app

@realulim
Copy link

realulim commented Nov 5, 2018

FWIW, I have gotten it to run with Vaadin 10. What I did was use the Spring Boot Starter project from Vaadin, so I didn't have to worry about Jetty et. al. For the Electron part it really does not matter what you use, you can always write a startup.sh or startup.bat script to custom-launch your application and then launch that script from main.js.

@Octogonapus
Copy link

@jreznot Now that Vaadin 14 (the next LTS) is out, maybe it makes the most sense to update to that instead of 10 or 12?

@jreznot
Copy link
Contributor

jreznot commented Sep 17, 2019

Yes, I've been waiting for 14 LTS release because there they finally support NPM packages for front-end.
See jreznot/electron-java-app#15

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

No branches or pull requests

4 participants