We are going to start a large and scalable application which has around 50,000 to 200,000 users. my partner told me Both Groovy and OpenXava are framework for small development. My co-worker told me Both Groovy and OpenXava are framework for small development. i want to know if it's true or which framework do you recommend me.
...
I am implementing a RESTful API in Grails, and use a custom authentication scheme that involves signing the body of the request (in a manner similar to Amazon's S3 authentication scheme). Therefore, to authenticate the request, I need to access the raw POST or PUT body content to calculate and verify the digital signature.
I am doing au...
Hi,
I have a menu that loaded from main layout. in the menu I have to highlight the specific menu if users click on that menu. I detect it based on Controller name.
I have 2 menu that has different names ie Users Edit and Client Edit.
Both actually share the same controller (ie: UserController) and same Domain.
I tried to create ali...
Hi,
let's go straight to the problems (with Grails 1.1.1, it should work on previous one)
I have 2 domains ie: User and Detail like this :
Class User {
String userName ;
..... // another fields
static hasMany = [details:Detail];
}
Class Detail{
String detailName ;
... // another fields
static belongsTo = [user:Use...
Hello again,
So Hibernate Supports the latest Version of Firebird, which is really great.
But...
I got here an Firebird 1.5.2 Database. My Grails App using this Database via Hibernate...so far everything great.
My Apps sends Queries with Functions that are not known to my Database. For Example the Function LOWER, which is now supporte...
Hi,
In a Grails application I would like to add a foo() method to all my controller classes. I know that I can do this inside a plugin's doWithDynamicMethods closure using code like:
application.controllerClasses.toList()*.metaClass*.foo = { println 'foo called' }
However, I don't want to create a plugin just for this purpose. Is the...
Hi,
In a Grails application I'm looking for some way to pass data from a controller action to a filter that runs after the action. I was thinking of something like:
class MyController {
def myAction = {
render(view:"myView", model:[key: "value"])
passData {
// Do some processing here
name = ...
I'm trying to get a one-to-many relationship working with grails/gorm. I don't understand how to handle an empty list.
Here is my domain class:
class Parent {
List children
static hasMany = [children: Children]
}
Here is my test:
void testEmptyChildren() {
def parent = new Parent()
assert 0, parent.children.size()
}...
What is the reason to use g:textField in Grails if you're already familiar with standard HTML form tags?
If I understand correctly the following two markup alternatives are equivalent:
<input type="text" name="name" value="${params.name}" id="name" />
<g:textField name="name" value="${params.name}" />
Are there any circumstances unde...
If I know Rails, what new ideas/patterns would I learn if I looked at Grails?
I have no intention to move to Grails and no need for a Java stack, but if there are neat ideas I could learn from Grails I'd like to learn them.
...
Hi,
I have clients who still using dot matrix for making copies of printed documents (like invoice, reports, etc). I did a development using grails (web application) for internal company only (so it doesnt matter to install / update all java re in all computers)
I am still learning (just started) Javafx. can i use this javafx to print ...
Does someone have any examples for using ExtJS (3.0) as frontend with grails, e.g. reading grid data with JSON, error handling with JsonReader, etc.
...
I'd like to do the following but am not sure if it can be done and if so how. Create a Grails application on my local machine and test it. Then somehow package it up along with the Jetty server, and install it on a users desktop. The installer would put an icon in the start menu that would launch the server and load the start page in eit...
I've written some code that checks to see if the user is logged in as an admin or not to limit who can make changes to other user's permissions, but the if tag is never true. I've made sure the correct data is there by echoing it out but nothing I've found so far has given me a solution.
<g:if test="${session.userPermissions == 'Admini...
It seems to be possible to debug Grails applications in the recently released Netbeans 6.7, even if not directly through the menus. However, is it really so, that it's still not possible to set breakpoints in closures, as hinted in this thread?
I'm currently quite baffled by this, since I find it hard to believe they still haven't imple...
Hi,
I am little bit confuse about log4j in grails.
I need to log info into info.log, error into error.log and warning into warning.log
if possible, all the files (info,warning and error) should be placed into web-app/
so that i can do check via internet (vpn)
can someone help me to do that ?
...
I'm having this problem with the grails liferay-plugin:
localhost_liferay_portlet_WEB_INF_grails_app_views_test_view_gsp: 17: expecting anything but ''\n''; got it anyway @ line 17, column 170.
1 error
Here's the gsp:
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<div>
<h1>View Page</h1>
The map returned by renderV...
Hi,
In my Grails app, I have a bean stored in flow scope under a key that is dynamically generated. In a GSP I want to retrieve the bean. Assume that the key of the bean is the current Date as a String (though it's not really).
If in my GSP I use something like
${new Date().getDateString()}
then this will render the current date, bu...
Recently I've been playing a bit with Groovy and Grails and I have to say I'm nothing but impressed by the simplicity and productivity this framework could offer.
In the past I've also greeted the world via Ruby on Rails and what not, having that very same feeling so it's pretty much obvious that when it comes to web apps, DRY KISS is d...
My question is related to "Is Ruby on Rails ready for the Enterprise?" My question is not about IF Ruby on Rails/Grails is ready for the enterprise - my question is will they ever catch on in the enterprise?
J2EE applications have such a strong foothold right now and a lot of investment from the giants (IBM, Oracle, etc) and those gian...