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

How render custom error messages?

I have a domain class : package x class User { transient springSecurityService String username String password //other stuffs. static constraints = { username blank: false, unique: true password blank: false …
batman
  • 4,728
  • 8
  • 39
  • 45
0
votes
1 answer

Grails Selenium plugin not found for name [selenium]

I've been trying to get the grails selenium plugin installed for the project I'm working on. I'm inside the project dir but, when I execute the following command grails install-plugin selenium I get the following error, Resolving plugin selenium.…
OrwellHindenberg
  • 4,988
  • 8
  • 38
  • 58
0
votes
1 answer

Redirect on rowSelection with JQGrid in grails

I am using the plugin JQGrid 3.8.0.1 on a Grails Project having the Grails 2.0.3 version. I have this having an attribute onSelectRow. I was planning to convert my redirect structure from the form structure to window structure. The…
David B
  • 3,269
  • 12
  • 48
  • 80
0
votes
1 answer

Entering string data in Grails

I am new in Grails application development(Springsource eclipse). I used scaffolding to do the CRUD operation and got a bizarre error. Although I filled out all fields to create table I got the message that "Property [name] of class [class…
Reza
  • 739
  • 1
  • 10
  • 24
0
votes
1 answer

Grails JQGrid 4.0

This problem also concerns my question regarding the multiple grouping inside the JQGrid using the tag. But as I later found out here in the changelog of JQGrid, there might be issues with the grouping feature of JQGrid version 3.8.0.…
David B
  • 3,269
  • 12
  • 48
  • 80
0
votes
2 answers

cannot find symbol in grails quartz 2 - grails asynchronous mail plugin?

Compilation problem while starting the project java\grails\plugin\quartz2\GrailsJobFactory.java:49: cannot find symbol symbol : method newJob(org.quartz.spi.TriggerFiredBundle,org.quartz.Scheduler) location: class…
Jeba Prince
  • 1,669
  • 4
  • 22
  • 41
0
votes
1 answer

How to add downloaded plugins into grails project using STS Eclipse

I wonder, Is there any way to add downloaded plugins to project using STS(Sprint tool suite) like we have in intellj ide (add custom plugins) http://wiki.jetbrains.net/intellij/Managing_Grails_plugins for example i have downloaded jasper plugins how…
Amit
  • 211
  • 1
  • 2
  • 6
0
votes
2 answers

Set value in message.properties file from grails service

I want to set values to message.properties file. I have already done it in java like the following: Properties emailErrorMsgProp = new Properties(); emailErrorMsgProp.load(new FileInputStream("grails-app/i18n/messages.properties")); …
0
votes
1 answer

trouble installing grails csv plugin

Im trying to install the grails csv plugin, i typed "grails install-plugin csv" and when I tried to install it, it gave me an error saying "UNRESOLVED DEPENDENCIES", "net.sf.opencsv#opencsv;2.3: not found" and below that it says that the Plugin has…
Ameya
  • 549
  • 1
  • 10
  • 19
0
votes
2 answers

Grails application is not running after installing Grails activiti plugin

i have found grails activity plugin Here and following this document to getting started with this plugin . on running the application after installing the plugin i am getting following error | Running Grails application …
maaz
  • 3,534
  • 19
  • 61
  • 100
0
votes
2 answers

GrailsFlow plugin installation -with Grails 2.0.4

I have downloaded GrailsFlow GrailsFlow 1.1-RC1 plugin and demo application and was trying to run the appliaction in my local. I have grails version 2.0.4 . i am not able to run the application and which gives me following error …
maaz
  • 3,534
  • 19
  • 61
  • 100
0
votes
2 answers

Grails 2.0: missing resources when running multiple instances

I'm running application on a grails 2.0.3 with resource plugin 1.1.6. I have missing resources when running 2 instances of the application Running the first instance with: grails clean; grails compile; grails -Ddisable.auto.recompile=true…
0
votes
3 answers

Grails extension in SpringSource Tool Suite errors

I recently installed SpringSource Tool Suite. And I want to start working with Grails projects. So, I went to the Dashboard -> Extension, where I saw two extensions: Grails (current production release) and Grails Support as in the image below. But…
0
votes
1 answer

Error configuring the requestmap in spring security core for grails

In my system, I have numerous roles assigned to the users (lets assume 3 for now ROLE_ADMIN, ROLE_USER, ROLE_SERVICES). In one of my controllers (lets assume SearchController that we have three actions serviceIndex{}, userIndex{} and adminIndex{}),…
dipess
  • 33
  • 5
0
votes
0 answers

Testcases for grails 1.3.7

I was wondering if there are any example application or plugins that have test cases written against them. I'm starting to write more test cases for the applications in grails 1.3.7 I'm working and wanted to see how other people are writing their…
Hardik Patel
  • 937
  • 3
  • 14
  • 39