问题标签 [gaelyk]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
507 浏览

google-app-engine - Sitemesh 是否与 Gaelyk 合作?有人有工作指南吗?

有没有人能让sitemesh和gaelyk一起工作?正如这里提到的那样,这似乎是可能的http://blogs.bytecode.com.au/glen/2009/12/14/getting-sitemesh-running-on-google-app-engine.html。但是,我无法使用 gaelyk 模板进行此操作。我不断收到此错误

“javax.servlet.ServletException:创建模板失败:groovy.lang.GroovyRuntimeException:无法解析模板脚本(您的模板可能包含错误或尝试使用当前不支持的表达式):启动失败:SimpleTemplateScript3.groovy:2:期待 EOF,在第 2 行第 77 列找到“前缀”。
phony.com/sitemesh/decorator" prefix="de"

装饰器 main.gtpl 看起来像:

<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>

如果我将上面的内容重命名为 jsp,它可以正常工作。taglibs 不能与 gaelyk 一起使用,或者我的语法错误。

有人可以指出我正确的方向吗?

干杯。

0 投票
1 回答
472 浏览

grails - 用于中型应用的 Grails 或 Gaelyk

我计划开始开发一个将在谷歌应用引擎上运行的中型应用程序(不太复杂但也不太简单)。我早些时候决定使用 Gaelyk,因为它为 GAE 提供了支持,但我发现它没有模板支持。那么 Grails 是否更适合此目的?或者 Grails 模板也可以与 Gaelyk 一起使用?

0 投票
2 回答
331 浏览

google-app-engine - 从带有 Groovy、Java 和 Gaelyk 的谷歌应用引擎迁移到另一台主机

我目前有一个基于 gaelyk、groovy 和 GAE 构建的应用程序。

我想将此应用程序按原样移动到另一台主机(如 Amazon EC2)并针对 MYSQL 运行它。这可能吗?

我不需要谷歌用户服务。

0 投票
1 回答
278 浏览

groovy - 在非谷歌应用引擎应用程序中使用 Gaelyk URL 路由

我有一个 Groovy Web 应用程序,它没有部署在 Google 应用程序引擎上。(GAE) 我以前使用过 Gaelyk,我喜欢他们文档中描述的 URL 路由功能

如何仅将路由功能从 Gaelyk 移植到未部署在 GAE 上的基本 Groovy WEB 应用程序?

注意 1:我也不想在这个应用程序中使用 Grails。

注意 2:我不介意包含 gaelyk jar,但我宁愿不包含 GAE 中的任何内容。

0 投票
3 回答
1548 浏览

google-app-engine - Gaelyk:如何对集合属性执行数据存储查询

Gaelyk教程为数据存储提供了一些不错的低级包装器,这篇 Gaelyk 谷歌组文章描述了一种简单的建模关系的方法,只需将键存储在实体的集合中。

我的问题是如何对集合中的值执行查询?这是一些示例代码来澄清......

如何创建在实体的集合属性中搜索匹配项的查询?即如何重新创建上面神话般的“FilterOperator.CONTAINS”查询的功能?

0 投票
4 回答
1597 浏览

google-app-engine - 新的 Groovy AppEngine 应用程序的 Grails 与 Gaelyk

我开始使用 Groovy 开发一个新的 AppEngine 应用程序。它将是中型的并使用许多 AppEngine 服务。它将有一个常规网站和一个移动网站,使用 HTML 5 和 JQuery。

这两个框架中哪一个最适合我的情况?为什么?

0 投票
2 回答
176 浏览

google-app-engine - 在 GAELYK 中,我如何将表单提交的参数变量作为文本类型存储在实体/数据存储中

我使用 Gaelyk 在 Google 应用程序引擎上构建应用程序,我有一个提交文本区域内容(超过 500 个字符)的表单,以保存在数据存储中。

所以这就是我所做的:-

因此,此代码不起作用,因为 book.story 被视为字符串,因此它有 500 个字符的限制,

现在我如何将它定义为文本的数据类型。我理解它是一个初学者的问题,有人可以帮忙吗?

0 投票
1 回答
291 浏览

android - how to port a desktop groovy app to cloud/android

I have an application already developed and in production. It's developed in groovy, as a desktop application with its own UI, and its purpose is to screen-scrape a website to extract some information every minute, and show alerts to the user when it need to.

Now I am trying to move this application to android, so it will be available all the time the phone is up (the more alerts the user gets during the day the better). Before starting I would like to gather opinions from people with experience (haven't touched android yet):

I see the following ways to set the app in android:

  1. just port the whole application to android/java and have it running in the background all the time, doing more or less what the app now does. To take into account.

    • I assume running groovy on android is out of the question. I think I saw once some reference to a project to port it to android but it was so slow it was useless. So it must be android/java

    • Getting the html pages every minute (or less if i decrease) and doing all the parsing etc is doable or drains to much battery? What about memory, pages to parse could be not so small is there any limit on android?

  2. Set up a server side living in some hosting doing the screen-scraping every minute and only sending alerts to the background running android app, that would be much lighter than the previous one.

    • I assume there is some built-in push functionality in android apps can listen to?

    • What server side hosting/service would be recommended (and for what reason, cost, perf, easy of use...).

My guess would be 2, using GAE due to the affinity with android and maybe I could even use gaelyk to reause part of my groovy code...

I am targeting android 2.2.1 and up. The number of users is very small and easy to deal with so updating the android app is not a problem.

thanks

0 投票
2 回答
330 浏览

google-app-engine - Gaelyk - 如何在控制器和视图之间传递模型对象

我刚开始使用 Gaelyk。

我期待它表现得像 Spring MVC;我在controller.groovy 中创建我的模型对象,并在.gtpl 中格式化模型对象。

在控制器中我这样做

在 .gtpl 我这样做

但是,当我运行它时,我得到了MissingPropertyException

在教程示例中,模型对象被硬塞到javax.servlet.http.HttpServletRequest的属性中,.gtpl 可以访问该属性。

这真的是控制器和模板之间传递数据的唯一方法吗?如果我能避免污染请求(或响应)对象,我会感觉更干净。

0 投票
1 回答
255 浏览

google-app-engine - 如何在 Google App Engine 上获取实际的 URI?

我将 Gaelyk 0.7 与 GAE 1.5 一起使用,并且试图在控制器/视图中获取请求 URI:

这在本地运行良好,但org.mortbay.jetty.Request.getUri()在生产中似乎不受支持。
当我到达时,/some/path我希望得到'/some/path'URI,但${request.requestURI}给了我类似'/index.groovy'.

有什么解决方法吗?