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

Css not being found in deployed grails application

I'm using the extjs plugin and I have the following line in my gsp file when I run the app using grails run-app I can see that this CSS is being used.…
allthenutsandbolts
  • 1,513
  • 1
  • 13
  • 34
0
votes
1 answer

how to use fckeditor in grails?

I did the install: grails install-plugin fck-editor i added to config: fckeditor { upload { basedir = "/tmp/storagearea/" baseurl = "/uploads/" overwrite = false link { browser = true …
0
votes
1 answer

Grails Spring Security BootStrap

I am on Grails 2.1.1 and Spring Security Core Plugin 1.2.7.3. I am trying to assign Roles to Users in BootStrap.groovy and persist these assignments. I create my Roles and an Admin User in BootStrap. I found the following blog post: Create User…
Philip Tenn
  • 6,003
  • 8
  • 48
  • 85
0
votes
1 answer

Grails Twitter Bootstrap Plugin Issue with navbar-fixed-top

I am using Grails 2.1.0 and Twitter Bootstrap Plugin 2.1.1 and am encountering an issue with navbar-fixed-top. In order to get the Navbar fixed to the top of the page to behave correctly during resize, the Twitter Bootstrap Docs states: Add…
Philip Tenn
  • 6,003
  • 8
  • 48
  • 85
0
votes
1 answer

Data not being passed to the server from Datatables

I have a really simple Datatable configuration, $("#providerTable").dataTable({ "bLengthChange":false, "bAutoWidth":false, "bProcessing": true, "bServerSide":true, "sAjaxSource":"${createLink(controller:…
rstarter
  • 287
  • 2
  • 4
  • 13
0
votes
1 answer

Grails + BlazeDS Plugin

We are currently using your BlazeDS plugin in our grails application. We have encountered an issue whereby a null pointer exception being thrown in the class BlazedsOpenSessionInViewFilter is rapidly filling up our log files The error message from…
Damien
  • 4,081
  • 12
  • 75
  • 126
0
votes
1 answer

InvalidatedSessionException in grails 2.1 with database-session 1.2.0 and spring security core when logging out

I need sessions to be stored in database. I used the database-session plugin from Robert Fischer ( https://github.com/RobertFischer/grails-database-session ) in version 1.2.0 and updated it to grails 2.1. I installed the plugin in my main project…
whitenexx
  • 1,350
  • 2
  • 25
  • 53
0
votes
2 answers

TestDataConfig.groovy not found, build-test-data plugin proceeding without config file

I am getting the following error when including in Mixin Build in unit tests: TestDataConfig.groovy not found, build-test-data plugin proceeding without config file it works like charm in the integration tests but not part of unit tests. I mean,…
latvian
  • 3,161
  • 9
  • 33
  • 62
0
votes
1 answer

Grails MongoDB Plugin Unreleased versions: 1.0.1 OR 1.1.0.GA

I am working on running down MongoDB issues with Grails Scaffolding. I wanted to try more current versions to see if perhaps the issues I encountered have been resolved in later versions. From the Grails.org MongoDB Plugin Page, I see the…
Philip Tenn
  • 6,003
  • 8
  • 48
  • 85
0
votes
1 answer

Error configuring dynamic methods for plugin [resources:1.1.6]: Cannot get property 'pluginPath'

Using grails 1.3.7 i have no problem compiling and running my project from my STS. The error listed below occurs after packaging the WAR and trying to deply it from apache tomcat. This problem has not occured before and i have had success deploying…
dunn less
  • 623
  • 10
  • 26
0
votes
1 answer

unable to run a Grails integration test for webFlow 2.0.0

I am using Grails 2.0.3 and webFlow 2.0.0. I have a WebFlow definition in my controller that is working fine but I want to still add integration tests to facilitate future maintenance. I am getting the following exception in my test whenever the…
vanvasquez
  • 939
  • 1
  • 10
  • 18
0
votes
1 answer

Getting the Session in RememberMeServices- Grails/Spring Security

I have a class which implements the RememberMeServices and LogoutHandler interface. I have turned on session fixation and have the option to create session to true. When I try to get my session in the loginSuccess method using…
allthenutsandbolts
  • 1,513
  • 1
  • 13
  • 34
0
votes
1 answer

Using namedQueries with the multi-tenant-single-db plugin

I have a domain class lets say class ListItem { Long tenantId } I want to create a namedquery like such active { Long currentTenantId = ?????????; or { isNull('tenantId') eq ('tenantId', currentTenantId); } } In…
Scott Warren
  • 1,581
  • 1
  • 17
  • 30
0
votes
1 answer

Grails 2.1.0 unable to install webflow plugin

I'm running Grails 2.1.0 and I can't install the webflow plugin: $ grails install-plugin webflow | Plugin installed. $ grails | Configuring classpath :: problems summary :: :::: WARNINGS module not found:…
user404345
0
votes
1 answer

How Do I get proper error messages from Spring Security UI?

I have been using spring security UI and spring security plugin. We have our register.gsp page which works as expected. We are moving our css to twitter bootstrap so we changed register.gsp file, to match our requriements. So we changed :…
batman
  • 4,728
  • 8
  • 39
  • 45