select
b.security_type,
b.symbol,
b.security_description,
b.trade_date_qty as 'axys_qty',
c.trade_date_qty as 'fidelity_qty',
c.trade_date_qty - b.trade_date_qty as 'qty_diff',
b.cost_basis as 'axys_cost',
c.cost_basis as 'fidelity_cost',
c.cost_basis - b.cost_ba...
I have problems getting data from grails using extjs.
My Grails controller code is:
def getElements = {
def json = [
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address": [
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY...
Hi, i'm using the Apache Shiro as the framework for athetication of my application. I was following the reference at http://www.grails.org/plugin/shiro
and my application throws the exception:
No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is a...
Is there a way to do that without using a POST request to "j_spring_security_check"?
...
Hi, is there a special way with gorm to map a three domain classes relationship like this:
1 person belongs to N companies with M given roles (one or more roles for a given company)
Thanks in advance.
...
In my database, I have a column type : datetime.
Column data example : 2009-02-03 19:04:23.0
I'm using : SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S"); to define my date format.
I'm using groovySQL to read tables and for each rows, I'm adding a new SampleJ object (mapped to a new table - SampleJ).
Here my...
I would like to deploy a grails war to a sub context path but when I try this the application will not load and an error filterStart so I'm either missing something or grails can't be deployed to a sub-context. Is there any way to load grails in a sub context?
...
Hi,
I'm running one grails portlet on liferay 5.2.3 successfully, now i developed another grails portlet and hot deployed, but the portlet showed me some errors and not working says "portlet is temporarily available" .
I tried restart server but still only one portlet is running and other is not running .
This is the log when deployed...
I'm testing a service of my application thats depends of another services in runtime. When testing, the dependency inject seems doesn't works. Does dependency injection works in Grails artefacts when running integration tests?
...
I have used XmlSlurper successfully before, but am struggling to parse the following XML - it is a response from a call to the Pingdom API. I have tried following the namespace declaration examples, but I just get an error message on the ns1 and ns2 values. Can anybody help point me in the right direction? The xml looks like this:-
<?x...
How i must design my grails application? My business rules must be implemented only within services (with anemic domain classes, only with getters and setters) or must exist a consensus, putting domain business rules in domain classes and services?
...
I want to have full code autocompletion. I managed to add core/grails/spring taglibs so that STS does autocomplete tags for me in gsp files. What i want to do now is do same thing for my own custom tag libs.
If i create tag lib descriptor by hand and put it in tld folder i can add include to my gsp file like this
<%@ taglib prefix="p"...
Looking to integrate a Flex component with Grails server I found http://www.grails.org/Flex+Plugin and was disappointed to realize that:
As written in its description "It's not sure if the plugin works in production mode"
Plus Tomas Lin Lesson 2 in his blog post http://fbflex.wordpress.com/2008/07/26/nine-lessons-from-building-a-grails...
I have an external data source, which will return a string indicating the name of a Grails service to use.
What's the syntax to get an instance of this service programatically given the name of the service as a String?
ie. given 'GoogleWeather', give me an instance of GoogleWeatherService.
Thanks!
...
Grails have cofig for spring bean called resources.groovy. And as i understand from docs it allows you to include another file, using loadBeans(%path%)
I'm tried with this:
println 'loading application config ...'
// Place your Spring DSL code here
beans = {
loadBeans("classpath:security") //i'm tried with "spring/security" and "...
Hi, could someone provide me with a snippet that assigns a given existing acegi role (Authority) to a Person in Grails ?
Thanks.
...
According to the Grails GORM guide, subclasses of domain classes share the same table as the parent class unless tablePerHierarchy is set to false.
I cannot find information on whether the following mapping statement is ignored because of the "abstract" keyword
abstract class Item implements Comparable{
static mapping = {
tablePe...
Hi all,
I've looked around but could not find a way of simply including or rendering *.html files in Grails. My application needs to g.render or <g:render> templates which are delivered as html files. For this, as we know, html files have to be converted to _foo.gsp files in order to get rendered. I am totally surprised as to why isn't ...
In Grails 1.2.1, I use a base domain class and derived domain classes and define constraints in all of them. The scaffolding templates (I use the i18n ones) determine the default field display order based on these constraints. My problem: No matter what I do, the fields from the base class are always displayed before the fields from th...
I need to parse 2 dimensional list, here is my schema list :
list (size=12)
->[0] = "export.SampleJ:12432"
--> id = 12432
--> dateCreatedSample = "Tue Feb 03 19:04:23 CST 2009"
--> ttId = 0
--> chipId = 1012
--> ...
->[1] = "export.SampleJ:12433"
--> id = 12433
--> ...
->[2] ...
I tried :
List<Strin...