Sencha Touch 的 Java 包装器

发布于 2025-01-06 00:19:03 字数 271 浏览 1 评论 0原文

我想使用 Sencha Touch,但有一个小问题:我不知道 JavaScript 或如何开始在 JavaScript 中使用 Sencha Touch。

我已经拥有 Sencha Ext GWT 的商业许可证,并用它在 Java 中开发应用程序。

我需要的是包装为 Java 组件的 Sencha Touch,或者一些关于如何为 Sencha Touch 制作我自己的 Java 包装器的指南。

我看过GWT4Touch,但它不符合我的要求。

有人可以帮助我吗?

I would like to work with Sencha Touch, but there is a small problem: I don't know JavaScript or how I would begin using Sencha Touch in JavaScript.

I already have a commercial license for Sencha Ext GWT and develop applications with it in Java.

What I need is Sencha Touch wrapped as a Java component or some guides on how to make my own Java wrapper for Sencha Touch.

I have looked at GWT4Touch, but it does not meet my requirements.

Can someone help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

葵雨 2025-01-13 00:19:03

那些要求是什么?我们对您的意见非常感兴趣;也许我们可以帮助您。只需在 Emitrom 论坛中提问即可:-)

对于那些可能不知道 GWT4Touch 是什么的人,这正是问题所要求的:Sencha Touch 的 Java API。我们正在将其重新命名为 Touch4j,因此您可能会开始看到这个名字。

请查看 gwt4touch2-demo.appspot.com 上的演示,或从 emitrom.com/gwt4touch 下载 API 并尝试一下。

What requirements are those? We would be very interested in your input; perhaps there is something we can help you with. Just ask in the Emitrom forums :-)

For those that may not know off hand what GWT4Touch is, it is precisely what the question calls for: a Java API for Sencha Touch. We are re-branding it as Touch4j, so you may start seeing that name thrown around.

Check the demo at gwt4touch2-demo.appspot.com, or download the API from emitrom.com/gwt4touch and give it a try.

烟雨凡馨 2025-01-13 00:19:03

几周前我也遇到了同样的问题。我不懂 Javascript,但我想使用 Sencha Touch 进​​行原型设计(与工作相关)。我偶然发现了这本书“Sencha Touch Mobile JavaScript Framework”:

实际上,如果您阅读这本书,使用 Sencha touch 开发应用程序并不难。我能够在一周内开发出一个原型,使用面板、工具栏、MVC、远程代理构建 UI 页面。我什至将所有这些与 Java Spring 和 Freemarker 模板集成。

下面是调用远程 ajax 代理的存储代码:

proxy: {
        id: 'proxyID',
        type: 'ajax',
        url: '../api/sampleRestJsonAPI',
        reader: {
            type: 'json',
            root: 'data'
        }

您必须设置 Java Spring(使用 MVC),以便当您的代码调用远程代理时,它会给您类似的内容:

{"data": {"field1":"value1", "field2":"value2"}}

基本上它应该是带有根的有效 Json您已在商店中指定。 url 配置选项可能会根据您在 Web 应用程序中构建文件夹的方式而变化。

因此,我在 Java 层中完成所有繁重的数据处理,并保持 js 层非常轻量。

这是一篇关于 REST IN SPRING 3< 的好文章/a>

I also had the same issue a few weeks back. I didn't knew Javascript but I wanted to use Sencha Touch for prototyping(work related). I came across this book "Sencha Touch Mobile JavaScript Framework":

Actually if you read this book developing apps with Sencha touch is not that hard. I was able to develop a prototype in a week where I built UI pages using Panels, toolbars , MVC, remote proxies. I even integrated all this with Java Spring and Freemarker templates.

Here is the Store code to call the remote ajax proxy:

proxy: {
        id: 'proxyID',
        type: 'ajax',
        url: '../api/sampleRestJsonAPI',
        reader: {
            type: 'json',
            root: 'data'
        }

You have to setup Java Spring (With MVC) so that when your code makes a call to the remote proxy it gives you something like:

{"data": {"field1":"value1", "field2":"value2"}}

Basically it should be a valid Json with the root you have specified in your store. The url config option might change based on how you structure your folders in your web app.

So with this I do all the heavy duty data processing in the Java Layer and keep the js layer very light.

Here is a good article on REST IN SPRING 3

感悟人生的甜 2025-01-13 00:19:03

您的哪些要求使得 GWT4Touch 不适合?如果您想编写 Java 来创建 Sencha Touch 应用程序,GWT4Touch 似乎做得相当不错。

What are your requirements that make GWT4Touch unsuitable? GWT4Touch seems to do a pretty good job if you want to write Java to create Sencha Touch applications.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文