English 中文(简体)
如何使爪哇FX和Spring MVC
原标题:How to integreate Java FX and Spring MVC


I want to use JavaFx as a front-end in my web-application. My question is that is it possible to bind Model object with the form which is developed with Java Fx.
I kindly request you to put some light on this issue.
Please let me know If you need more clarification regarding this

问题回答

网络前端(如Spring MVC)和富有客户(及RIAs如JavaFX)的主要区别在于,对于网络前端而言,服务器侧逻辑与网络框架在JVM相同,而对于富有客户而言,服务器侧逻辑和客户在两个不同的JVMs运行,一个在服务器机上,一个在客户机上。

富有客户通常在用户能够运行前全部下载/安装,而对于网络前端,每个HTML页面可能先动态创建,然后根据需要发送给用户。

由于用户通常从一开始就已经拥有完全丰富的客户端,只有实际数据(DTOs)才能使用某种远程服务(例如网络服务)来回发送。

这意味着 JavaFX 客户端无法访问服务器对象( 如随附 JPA 实体 ) 。 您需要用某种服务将数据包起来并发送给 JavaFX 客户端( 参见 Service Facecade 和 DTO 设计模式 ) 。

JAVAFX和Java EEE框架的主要区别与秋千应用软件和Java EE应用软件之间的差别相同。

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

阅读此文章 :

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





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签