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
2 answers

How to put the title center of pdf by using grails export plugin?

I have exported pdf by using export-plugin in grails. Now my problem is to put the title in the center of pdf. What code i need to write in the controller to align this title center?
JamesKarty
  • 11
  • 2
0
votes
1 answer

Combining Grails Plugins

Can I combine the following plugins together or are there any incompatibilities? How can I test if the plugins work well together? runtime ":zipped-resources:1.0" runtime ":cached-resources:1.0" runtime ":yui-minify-resources:0.1.4" …
Michael
  • 32,527
  • 49
  • 210
  • 370
0
votes
1 answer

Recommened way to install grails plugins

What is the recommended way to include a grails plugin for in a 2.1.0 project? 1: Add it to the…
Thomas Buckley
  • 5,836
  • 19
  • 62
  • 110
0
votes
1 answer

Authentication with SpringSecurity Core

I need help integrating a system for my company. We created a database that centralizes all the information in one authentication server. For authentication we use an internal url like…
isilva
  • 373
  • 4
  • 15
0
votes
1 answer

Couldn't able to hit the register page of Spring Security UI

Hi I have installed the spring security UI plugin in my grails app. I'm trying to create the registration page from Facebook registration, rather than from plugins default register page. I'm decoding the response and getting back the username,email…
sriram
  • 8,562
  • 19
  • 63
  • 82
0
votes
1 answer

Grails JCaptcha testing mode

Anyone used the JCaptcha grails plugin know if this has a test mode (for use with automated testing, GEB/Selenium), or do I manually have to add a test parameter to my config file and check this in all controllers where the captcha is checked?
klogd
  • 1,118
  • 11
  • 19
0
votes
1 answer

How to post an image to a Facebook wall using Grails

I am using the grails facebook-sdk plugin to connect and post to facebook. To publish a message to a user's wall I use: def publishMessageResponse = facebookClient.publish("me/feed", [message:"RestFB test"]) This works fine, but I want to post an…
Michael
  • 32,527
  • 49
  • 210
  • 370
0
votes
1 answer

grails strategies for managing custom plugins

I have modified some grails plugins to customize them for my needs. I am deciding how to best manage these customizations. My thought was to put them in a separate project (which is version controlled) and upload them to my Nexus repository. It…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
0
votes
2 answers

Intellij IDEA Settings for Grails Plugin Dependency Errors

I'm currently using Intellij IDEA 11.1.4 and though I've seen a few posts regarding issues with Grails plug-ins dependencies, I haven't been able to solve the problem locally. It seems as though Intellij doesn't recognize the plugins as relative to…
Edward J Beckett
  • 5,061
  • 1
  • 41
  • 41
0
votes
1 answer

GSP Access to Controller Results

I am using the Dojo plugin for Grails to populate a dojox.grid.DataGrid object. Right now my controller action associated with this grid renders the JSON that defines the grid contents. That works just fine as long as I predefine the columns in…
Jeff White
  • 43
  • 7
0
votes
2 answers

Tomcat Context stopped Grails GGTS Cloudfoundry plugin

I'm using the cloud foundry plugin. I have set my credentials in Config.groovy. Can you tell me more about the errors I get? Application Deployed URL: 'sqr-gb-ks.cloudfoundry.com' > Would you like to create and bind a mysql service?[y,n] > Invalid…
0
votes
1 answer

grails i18n-fields orderby

I am learning to use Grails with i18n-fields plugin. It a simple setup, domain: package bookstore @i18nfields.I18nFields class Book { String name static constraints = { } static i18nFields = ['name'] } And controller is: …
sasha
  • 93
  • 1
  • 2
  • 7
0
votes
1 answer

Grails spring-security-core plugin

Is it possible to modify and let grails spring-security-core plugin utilize other beans defined in e.g /WEB-INF/applicationContext-security.xml? Has anyone successfully been able to run for example a minimalistic case of spring-security:
dunn less
  • 623
  • 10
  • 26
0
votes
1 answer

Concept of engine or mountable engine in Grails?

In rails there seems to be a quite popular concept of engines even for things that are not stand-alone plugins but rather tiny contained web apps running in a web application. I know grails has plugins the supplement the main application but I am…
pieterk
  • 305
  • 2
  • 17
0
votes
0 answers

Migrating big grails project to Intellij

I am taking over development of a rather large grails project. The development was initially done in STS however I would like to move to IntelliJ Idea. Initially I thought this would be a piece-of-cake because of the "integrate-with --intellij"…
Hoof
  • 1,738
  • 2
  • 17
  • 39