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

Grails Export Plugin - File not found browser error

I'm trying to use the Grails Export Plugin for exporting a result set as CSV. I got this export method on my custom scaffolding controller template: def export() { response.contentType = "text/csv" response.setHeader("Content-disposition",…
Germán Medaglia
  • 182
  • 1
  • 1
  • 7
0
votes
1 answer

Grails Platform UI - How to override theme:layoutZone and/or theme:layoutTemplate?

I'm testing ui and themes for new Grails web-app I need to develop. I would like to know if it's possibile to override theme zones (http://grailsrocks.github.io/grails-platform-ui/guide/creatingThemes.html#themeRequiredZones) in my app. I know it's…
user1449165
0
votes
1 answer

FilterPane Grails Plugin: how to hide the combo box

I'm learning how to use the next search plugin: http://grails.org/plugin/filterpane I'm executing the example project of the plugin: https://github.com/Grails-Plugin-Consortium/grails-filterpane-demo/ I want to hide the combo box: For example, let…
chelder
  • 3,819
  • 6
  • 56
  • 90
0
votes
2 answers

grails get id from the value of autocomplete field

I am using grails 2.1.0. I have a autocomplete field in my view page. For autocomplete field I have used richui plugin. And the result is shown in the box. Now I want to work with the id of the value of that field not with the string. But I am…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
1 answer

Setting disableCNCheck using Grails Cxf Client Plugin

I'm trying to set disableCNCheck to true for my web service. I'm using Grails 2.2.0 with the Cxf Client plugin. I found this question: wsdl2java CXF command line error about disableCNCheck option with this piece of code: protected void…
0
votes
0 answers

Grails Enabling automatic migrations (Grails 2.2.2)

I'm testing Grails as a potential framework for our workplace. I'm using this tutorial found on Grails website to manage databases: http://grails.github.io/grails-howtos/en/manageDatabases.html I have been able to follow steps successfully all the…
codeBarer
  • 2,238
  • 7
  • 44
  • 75
0
votes
2 answers

How to implement push notifications?

This question might be stupid but I'll try anyway... I have a some webservices running on grails framework. Currently, my clients (android, iOS and windows phone devices) communicate with those services via classic http get/post requests. I need to…
edhoedt
  • 11
  • 3
0
votes
2 answers

Can we get an instance of a controller in a service in grails

I am new to grails, hence this question. Can we get an instance of grails controller in a service. I know that it is a bad design but the problem with me right now is that grails controller has got some properties like render, redirect,flash,…
Manas Shukla
  • 135
  • 1
  • 9
0
votes
1 answer

How can I share domain between projects with different persistence strategies in grails?

I'm new to Grails and I'm facing some problems sharing my domain model between three different applications. Two of them need to persist model objects, and the third don't. It seems the usual approach to manage this is by the creation of a plug-in…
Leo Lobeto
  • 364
  • 3
  • 14
0
votes
1 answer

how to pass values through ajax using grails

function yes(data){ var id=$('#id').val(); var pars = 'id=' + id+"&contact_preferences.email="+data; $.ajax({ url: "${createLink(controller: 'userform', action: 'update')}", type: 'GET', data: pars, …
sagar mane
  • 123
  • 2
  • 13
0
votes
0 answers

JQGrid plugin show duplicated rows and buttons when it is included from another view

I am using: compile ":jquery-ui:1.8.24" compile ":jqgrid:3.8.0.1" If I open my JQGrid controller, it shows the table perfectly. But if I include this controller from another controller view:
chelder
  • 3,819
  • 6
  • 56
  • 90
0
votes
1 answer

How to modify the default mapping location of the resources that a Grails plugin uses

I have installed: compile ":jquery-ui:1.8.24" compile ":jqgrid:3.8.0.1" I got the next error: | Error 2013-06-03 15:20:33,892 [http-bio-8080-exec-7] ERROR resource.ResourceMeta - While processing /plugins/jqgrid-3.8.0.1/css/jqgrid/ui.jqgrid.css, a…
chelder
  • 3,819
  • 6
  • 56
  • 90
0
votes
1 answer

Service not injected for inline plugin tests in Grails

My goal is to write test for my own Grails plugin. steps taken so far: Step - Create separate grails app (in our case, testApp) inside the Grails Plugin 'test' folder Step - Make the plugin to be inline for the application - testApp by adding…
latvian
  • 3,161
  • 9
  • 33
  • 62
0
votes
1 answer

Cannot obtain DBObject for transient instance, save a valid instance first

Cannot obtain DBObject for transient instance, save a valid instance first I am using MongoDb plugins in Grails 2.2.2 when i am creating a new user.. its saves but.. when i trying to edit telephone number its gives me an error when i am trying to…
0
votes
2 answers

In Grails, the command "tomcat:deploy" does not generate the complete war as the command "dev war" does

The command "grails dev war" deploys perfectly in my local Tomcat6 server with a generated war which contains the next folders: css images js META-INF plugins WEB-INF Unfortunately, I need that the command tomcat:deploy works too (I'm actually…
chelder
  • 3,819
  • 6
  • 56
  • 90