vaadin hilla 代替 flow 有什么问题
我使用 vaadin 和 flow 开发 web 应用程序已经有一段时间了(与 spring boot 一起),并且偶然发现了 hilla,一个新的 vaadin“插件”或项目...(www.hilla.dev)。
我知道 flow 和 vaadin 使用 typescript 来做一些事情,但我从来不需要深入研究我的 java 后端和生成的 html/js/css 之间的这个元层......
所以我问自己 Hilla 有什么用处我的生活更轻松吗?或者 hilla 是否更适合来自 javascript 和 javascript 的人? typescript 到 vaadin 而不是相反?
I develop webapps with vaadin and flow for some time now (together with spring boot) and just stumbled across hilla, a new vaadin 'addon' or project... (www.hilla.dev).
I know that flow and vaadin use typescript for some things but I never needed to dig deeper into this meta-layer between my java backend and the generated html/js/css things...
So I ask myself what's the use of hilla to make my life easier? Or is hilla better suited for people coming from javascript & typescript to vaadin instead of the other way around?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Hilla 是 vaadin-fusion 的新名称。
简而言之:
Flow=后端中的 Java 和运行时生成的前端 JS
Hilla = 后端中的 Java + Typescript 前端
因此,如果您喜欢 typescript 和 css Hilla 对您有好处。
如果您是 java 粉丝(就像我自己一样),Vaadin Flow 是您的最佳选择(或留下)
https:// vaadin.com/blog/renaming-fusion
Hilla is the new name of vaadin-fusion.
In short:
Flow= Java in Backend and Frontend JS generated at runtime
Hilla = Java in the Backend + Typescript Frontend
So if you love typescript and css Hilla is good for you.
If you are a java Fan (as myself) Vaadin Flow is the way to go (Or stay)
https://vaadin.com/blog/renaming-fusion
在 hilla 中,您使用 vaadin 作为桥梁。这意味着您可以注释端点并 vaadin 生成一个 ts 类,为您提供访问后端的简单方法。它还为端点处使用的任何类型生成 ts 对象,包括约束。有了 Binder 对象,您就有了一个舒适的解决方案来验证输入数据。
使用 Hilla 定制现有的 Web 组件或编写新的 Web 组件比使用纯 vaadin 更容易。
另一个好处是,hilla 不需要为每个用户交互向后端发出请求。
Hilla 还允许您构建具有离线支持的 PWA。
In hilla you use vaadin as a bridge. That means you can annotate endpoints and vaadin generate a ts class that give you a easy way to access the backend. It also generate for any type that are used at the endpoints a ts object, including constraints. With the Binder object you have a comfortable solution to validate the input data.
Customizing existing webcomponentsor write a new one is with hilla way more easy than with pure vaadin.
Another benefit is, that hilla don't need for every user interaction a request to the backend.
Hilla also allows you to build a PWA with offline support.