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

openjfx-web not supported? #34

Open
FelipeAumannRS opened this issue Jun 7, 2024 · 1 comment
Open

openjfx-web not supported? #34

FelipeAumannRS opened this issue Jun 7, 2024 · 1 comment

Comments

@FelipeAumannRS
Copy link

Tried to load an url using WebEngine, although it does not work.

Interesting enough, after excluding webView from code and replacing it with any javafx ui component (let's say a label), and then running " mvn package", the index.html is automatically refreshed, showing my label in the browser.

It's said that WebFX has 80% compatibility with openjfx-web, although it's not possible to do anything with this dependency in a WebFX context.

@salmonb
Copy link
Member

salmonb commented Jun 9, 2024

Yes, WebFX supports the JavaFX WebView and WebEngine, but the API coverage is not complete (estimated at 80%).

If your issue is at compile time, try to run webfx update at your project root level to fix it.

If your issue is at runtime, do you see some useful information in the browser console?
Can you find the iFrame in the DOM and check it is set with the url you provided?

Be aware that the browser sandbox is more restrictive than OpenJFX.
It's possible you are facing CORS issues (while OpenJFX doesn't care about CORS).

Don't hesitate to join the WebFX Discord chat if you need quick support (GitHub didn't notify me about this issue for some reason)

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

No branches or pull requests

2 participants