6


我想在我的 Web 应用程序中使用 JavaFx 作为前端。我的问题是,是否可以将 Model 对象与使用 Java Fx 开发的表单绑定。
我恳请您对这个问题有所了解。
如果您需要对此进行更多说明,请告诉我

4

2 回答 2

2

The main differences between Web front-ends (like Spring MVC) and rich clients (and RIAs like JavaFX) is that for web front-ends the server-side logic runs in the same JVM as the web framework while for rich clients the server-side logic and the client are running on 2 separate JVMs, one on the server machine and one on the client machine.

Rich clients are usually downloaded/ installed completely before the user can run it, while for web front-ends each HTML page is possibly first dynamically created and then send to the user as needed.

Since the user usually already has the complete rich client from start, only the actual data (DTOs) get sent back and forth using some kind of remote service e.g Web Services.

So this means that the JavaFX client cannot access the objects of the server (e.g. attached JPA entities). You need to wrap the data up and send it to the JavaFX client using some kind of service (see the Service Facade and DTO design patterns).

于 2012-05-26T23:08:52.163 回答
2

JAVAFX 与任何 Java EE 框架之间的主要区别与 Swing 应用程序和 Java EE 应用程序之间的区别相同。

您可以使用 JAVAFX 设计应用程序以直接在桌面上使用或在 Java 浏览器插件的帮助下部署为浏览器小程序。但是,将其用作设计 Java EE 应用程序前端的框架是不可能的。

阅读这篇文章:

https://www.java.net//node/674176

于 2013-06-14T12:53:51.793 回答