Okay, I've the strangest problem that I've just started to experience in a grails application working just fine for 2 months.
Application is deployed on Linux/Tomcat 6 and MySQL is the DBMS at back end.
When I type date on linux prompt, I get following output:
$>date
Sun Aug 8 03:52:06 PKT 2010
Where as in Grails application new Da...
Hi All,
Project setup is Flex 3-BlazeDS-Spring Flex Integration-Grails
Dependency injection in my Service classes was working just fine with Grails 1.2.1, when service methods were called from my flex client.
When I upgraded my project to 1.3.3 yesterday using the regular 'grails upgrade' command, everything went well but once I start...
I'm Creating a website for online reading stories using grails and i'm facing a business problem that if i post a story say 30 pages A4 in the Fckeditor and it had saved will .. the question is how can i display this in a 30 pages with a pagination or something like that.. do anyone have idea cause i'm out of simple ideas and i think ma...
I am using 0.5.5.1 grails searchable plugin. Search works on most of my objects and fields. However, I have a class with String id and it consists of a Number Dash Number like 1-1, 1-2, .. and so on. I cannot search this object by id. My guess its due to dash in it, it might be ignored by searchable analyzer? Not sure.. Any ideas, sugges...
We are trying to look for plugins for Grails to make a CMS site. Any suggestions?
...
I have a very basic upload action in my controller. It looks something like the action below. It works great. The only problem I'm seeing is when a user cancels an upload (or hits stop on their browser). I am able to recover correctly, but not before seeing an uncaught exception in my logs. The exception is listed below. Any help o...
I am trying to create a UrlMappingsTest and am getting the following error:
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and s...
I am trying to develop a grails application that returns kml (to be viewed in Google Earth) using the controller code snippet below.
render(contentType: "application/vnd.google-earth.kml+xml",
view:"kml",
model:[feeds: feeds, feedColors: feedColors]);
This works great...but Google Earth does not open the response until it is fi...
My project's copy contains the following snippet in HibernateGrailsPlugin.groovy :
def doWithDynamicMethods = {
def dynamicMethods = HibernatePluginSupport.doWithDynamicMethods
dynamicMethods.delegate = delegate
dynamicMethods.call(it)
// aids in generating appropriate documentation in plugin.xml since
...
I am using filters to handle authentication and some other pre-condition checks for a Grails application. I've run into a situation where it'd be nice to ensure that filter A is always invoked before filter B.
According to the documentation the "filters are executed in the order they are defined" but it is unclear what that definition ...
I have a custom validator like -
validator: { userEmail, userAccount ->
if (userAccount.authenticationChannel == "ABC") {
boolean valid = true;
UserAccount.withNewSession {
if (UserAccount.findByEmail(userEmail)){
valid = false;
}
else if (UserAccount.findByName(userEmail)) {
valid = ...
Hi,
I am running into problems using unique constraints.
The following combinations are allowed
A.name B.name
foo NULL
foo bar
foo bar1
foo1 bar
It should not be possible to create a new A with same name, only if it has a different B.
With the constraints below it is possible to create
A.name B.name
foo NULL
foo ...
In my Grails application, I run some batch processes asynchronously, and would like the process to log various status messages so that the administrator later can examine them.
I thought of using log4j JDBC appender as the simplest solution, but from what I can tell it doesn't use DataSource. Has anybody gotten it to work or wrote the...
I got a singleton service and inside its only method I need to obtain a reference to the hibernate session bound to the current request. What is the quickest way of doing that?
...
Hello,
I'm creating a DB web application with grails for my company and found myself in the need to change the default scaffolding templates.
So far so good, everything gets generated with the modified templates (controllers, views, ..).
Now, however, I get a request to create some "composite screens" with functionalities and a layout...
Having spring application (actually grails app) that runs apache-activemq server as spring bean and couple of apache-camel routes. Application use hibernate to work with database. The problem is simple. Activemq+Camel starts up BEFORE grails injects special methods into hibernate domain objects (actually save/update methods etc). So, if ...
Hi,
I am using grails formatNumber and I would like to display my numbers in decimal format.
I would like to display 10 as 10.00
or 0 as 0.00 with 2 decimal digits.
how to do that ?
...
How can I build a menu-like selection bar in Linux using Grails? Is there any plugin that can help do this?
...
public class Room {
static belongsTo = [hotel:Hotel]
Source source
long sourceid
RoomType type
float price
float oldPrice
Currency currency
boolean isShown = false
boolean approved = false
static hasMany = [roomTexts:RoomText]
def beforeDelete () {
Photos.withNewSession {
Photos.findAllByRoom(this).each {...
I'm working on a very, very quick and dirty application using almost entirely scaffold to do it. This is only for internal use, and it's just to replace a spreadsheet, so while I know that I shouldn't rely on scaffolds for real production use, I still intend to use them where I can for efficiency (...just wanted to make sure we aren't ta...