Questions tagged [grails-plugin]

A Grails plugin is a self-contained bundle of functionality that can be installed into a Grails application.

A Grails plugin is a self-contained bundle of functionality that can be installed into a Grails application. When a Grails plugin is installed, it can do any of the following:

  • Define additional Spring beans
  • Modify the generated web.xml file
  • Add new methods to the application's artefacts (controllers, domain classes, services, etc.)
  • Provide new tag libraries
  • Make additional resources and classes available to the application
  • Provide new Grails commands

For example, when you install the jQuery plugin

  • The jQuery JavaScript files are added to the application
  • A new Grails tag <jq:jquery> is added to the application
  • A new Grails command grails install-plugin jquery is added to the application

When you install a Grails plugin, that plugin's functionality is made available to the installing application. However, the plugin itself is not actually copied into the application, only the plugin name and version is added to the application's application.properties file. The plugin itself is downloaded to $HOME/.grails and the application loads it from there.

The structure of a Grails plugin project is identical to that of a Grails application, with the exception of a configuration file (known as a plugin descriptor) that is included in a plugin's root directory.

1510 questions
0
votes
1 answer

grails + singleton service for object saving to database for cloud application

Here I have one service Called 'DataSaveService' which I used for Saving Objects like.. class DataSaveService { static transactional = true def saveObject(object) { if(object != null) { try { …
sanghavi7
  • 758
  • 1
  • 15
  • 38
0
votes
0 answers

After applying 'around' aspect on controller it fails with error which states that 'no such method or property exists'

Original idea: When controller throws an exception only stacktrace is available, but not a parameters that caused it. Idea is to put a logging aspect that wraps grails controllers, services and some other points of interest (POI) for the thread, and…
alebu
  • 420
  • 1
  • 5
  • 15
0
votes
1 answer

Grails 2 Spring Security Plugin - Redirects to /login/denied after successful login

I have Spring Security Plugin successfully working for the most part in Grails 2.0.4. If I go to page "localhost:8080/dashboard", I am redirected to the login screen. When I login successfully, I am redirected to "/dashboard". The problem I am…
user415217
  • 81
  • 4
0
votes
0 answers

grails : how to get userList from Group

I have three class. class User { String userFirstName String userLastName } class Group { List userList String groupName static hasMany = [userList: User] } class work { User worker Group group …
0
votes
1 answer

Grails Build Test Data Plugin - MissingMethodException when calling DomainObject.build()

The Crux I am getting the following error in my unit test when calling MyDomainObject.build() via the Build Test Data plugin: The Exception groovy.lang.MissingMethodException: No signature of method:…
John Gordon
  • 2,181
  • 5
  • 28
  • 47
0
votes
1 answer

Grails OSGi plugin instsallation error

I'm trying to install the Grails OSGi plugin into a new Grails 2.0.3 app. > grails create-app sandbox | Created Grails Application at /home/pocon64/sandbox > cd sandbox > grails install-plugin osgi | Plugin installed. > grails run-war | Loading…
theZenPebble
  • 621
  • 7
  • 24
0
votes
2 answers

Failure to deploy grails app with cloudfoundry plugin

"grails cf-push" results in errors listed below. Is there a way using the cloudfoundry plugin to "start fresh". I would prefer not to lose my test data in a MySQL database and a MongoDB database. May 18, 2012 6:31:26 PM…
Mark D
  • 61
  • 6
0
votes
2 answers

Application context from a Grails plugin?

I'm developing a plugin and trying to properly decouple as much as possible. How would I get the application context of the grails-app that is including my plugin? I have a doWithWebDescriptor that is including a servlet which is being included at…
Brandon Lorenz
  • 211
  • 2
  • 13
0
votes
1 answer

Autogenerate Jquery Autocomplete in CRUD grails scaffolding (one-to-many relationships)

I have altered the src/templates/scaffolding/renderEditor.template file in a grails project, in order to insert, the necessary html field boxes (and javascript code) to configure and use jquery autocomplete, in all the relationships "many-to-one".…
0
votes
2 answers

Grails error installing searchable plugin

When I try to install the searchable plugin in a grails app, I'm told that grails can't resolve the following dependencies: :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: …
0
votes
1 answer

Grails database-migration - dbm-gorm-diff confusion

I just installed the database-migration plugin for a Grails 1.3.7 application that already contains about 100 domains. I ran the initial dbm-generate-gorm-changelog which generated a changelog.groovy that looks alright. I added a single domain with…
Gregg
  • 34,973
  • 19
  • 109
  • 214
0
votes
2 answers

grails ui autocomplete: how to pass other fields?

I'm trying to use grails ui autocomplete component. It seems pretty simple, but I'm stuck trying to pass parameters to the ajax call. What I need is that everytime I change the select element (tempType), the ajax call to the action…
Tiago Farias
  • 3,397
  • 1
  • 27
  • 30
0
votes
2 answers

how to make web search in grails

Hi i am a student doing my academic project.I need some guidance in completing my project. My project is based on grails framework which searches for books from 3 different bookstores and gives d price from all the 3 stores.I need help in searching…
ramya
  • 1
0
votes
1 answer

Grails: running test-app grails uninstall lesscss plugin

I'm using Grails to build an application, I have a problem... I've installed the lesscss to manage the css, but each time I try to test my application with test-app command, it uninstalls the plugin. Why is that happening? grails> test-app…
rascio
  • 8,968
  • 19
  • 68
  • 108
-1
votes
1 answer

Groovy files from a plugin

I want to know if it's possible to get the groovy files in place of the .class files of a plugin. The scenario is as follows: The system uses some plugins (made by the company); These plugins use another and another... it's something like this: ->…
1 2 3
99
100