grails-plugin

grails: grailsui : cannot access dataTable outside <gui> tag

Hi, I tried to access Datatable outside gui tag, but failed. Could some tell me why? thanks. the code like this: <gui:dataTable id="myDataTable" .../> <script> var data = GRAILSUI.myDataTable; alert("hi, " + data); </script> it ends with "hi, undefined" ...

How to retain Form Parameters in Grails

I have a similar problem here. I have a page which accepts 3 parameters. i enter the parameters and the control goes to the list action. The list action has the code to query db and get the data on list.gsp page. Now when i hit "download to excel" on the same page, i want the same list action to get triggered and the same query to be run...

Grails can't resolve plugin

When I try to run a grails app, I'm told that grails can't resolve the following dependencies: :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.grails.plugins#code-coverage;1.1.8: not foun...

How to use Grails with BIRT report and show BIRT web viewer

I installed the birt-report plugin on a Grails web application project but I cannot understand to use it. I have 2 use cases: Generate BIRT web viewer and show on GSP Page (Show chart report) Generate BIRT report to some other file format (PDF, Word, etc.) Can anyone please provide examples of how to do this? ...

XML sitemap in Grails

Hi there, I am trying to figure out the best way to generate an XML sitemap (as described here: http://www.sitemaps.org/) for a Grails application. I am not aware of any existing plugins that do this so I might build one. However, I wanted to get the community's input first. Aside from supporting standard controllers/actions, I am thinki...

Suitable Security Plugins for Grails

Hello All. I have been working on a project which uses Grails with Hibernate... Now the project is up and running very well now, but the thing that I need to integrate is the most important part of project i.e. Security. So, for security I have found out some of the plugins that are available with grails like ACEGI (i think it's Sprin...

Grails / Spring Security LDAP: alternate check method

Hi there, I've been wondering if there's a way to configure Spring Security LDAP plugin to perform the authentication not in the standard way but as follows: If one is able to connect and login to the LDAP server then the user is authenticated. Read the authorization from this user's account on LDAP (this is probably the default be...

Upgrade Grails Version in Netbeans and Add Shiro Security

Hello All.. I have been working on the project where application is using grails 1.2.2.... Now I want to add the Shiro Security with the current project (using Netbeans), and I am very much new to the grails arena. So, I wanted to know that how can add shiro plugin to my current project (in netbeans) ? May be I also need to upgrade my...

How to preview PDF using PDF Viewer on an Grails Application

Hi all,I'm a novice Grails Programmer.I have 2 use case : render image file show on GSP Page. render PDF file and show on PDF Viewer integrate with GSP Page. Can anyone provide examples of how to do this? ...

Shiro Plugin conflicting with Quartz framework in Grails

Hi All.. I have been working Quartz framework in my grails project with lib called quartz-all-1.7.3. Now I need to install the shiro plugin to my project. So, whenever I am installing shiro plugin to my project its getting installed successfully.. But again whenever I am running my project again it's giving compilation error as follow...

How do I resolve the grails bootstrap execution error "postProcessBeanDefinitionRegistry already called for this post-processor"?

I'm building a Grails (1.3.4) app configured with the grails plugin tomcat-1.3.4 and using Spring (3.0.3RELEASE) but reusing an existing Spring applicationContext.xml file. I copied the relevant portions of the old file into the one generated by Grails (just below the characterEncodingFilter bean). After making sure that all the requir...

UI Integration sample required of Spring Security Plugin of Grails

Hi All... I have been working with grails application and for security purpose used the spring security core. Now with that they are also providing the UI stuffs of security. So I have installed the plugin from http://grails.org/plugin/spring-security-ui in the project where I have configured spring security core too. Now I have not f...

Grails 1.3.5 and Spring Security Core

Hi, I have build a grails application, which on login redirects users to different URLs based on User's role (custom roles defined in roles domain). Now I am trying to integrate Spring Security Core Grails Plugin to the application, so plan to use the plugin's domain model. I understand the auth action in LoginController does the user...

Grails: Groovy error reported on tomcat plugin after creating a new project

Hi, I am using SpringSource Tool Suite Version: 2.3.3.CI-R5608-B54 Build Id: 201008210801 with Java 1.6.0.u21 & Grails 1.3.5 I created a new grails plugin project and after the process was completed, STS reported problem as below. I had this problem before when creating grails project but usually got fixed if I do grails clean or p...

Best grails implementation for tracking number of views (or unique visitors) for a web page ?

I need to implement a very popular feature : displaying the number of views for a profile page. For instance, my profile page in StackOverflow will display how many persons have viewed my profile (just under my reputation score). I suppose that the algorithm is based on some cookies and/or visitor IP addresses. Is there a simple way (a...

How to exclude certain plugins from war in grails 1.3.5

Hi I'm seeking how to exclude plugins for specific environments. According to GRAILS documentation, starting with 1.3.5 it's now possible to disable a bunch of plugins. For example, I add the jetty plugin for local testing, but don't need it for deployment. I try to use the following in Config.groovy: envname { . . . pl...

Stylesheet in Grails Feeds Plugin

trying to include stylesheet in grails plugin, any suggestion in how to implement with plugin or do I just need to write my own feed code? ...

doWithDynamicMethods not being Called

When I create a production war (grails war --nojars) my doWithDynamicMethods is not being called in a production environment. The code works in the dev env (ie grails run-app) Here is some of my code: PDFFormsGrailsPlugin.groovy (in PDFForms (plugin) directory) :- def doWithDynamicMethods = { ctx -> println "Adding renderPDFForm t...

Distinguishing between Grails domain-class fields and getBlah() methods via GrailsDomainClassProperty

I'm writing a Groovy script (as part of a Grails plugin) and I want to get a list of properties for a GrailsDomainClass that a user of my plugin might define. I can do this using domainClass.properties (where domainClass is a GrailsDomainClass). However, suppose a user has the grails domain class: class Example { String name ...

Grails Picasa Plug-in with google app-engine

Hi, Has anybody used Grails Picasa Plug-in running on google appengine? Below are the things i did I have hosted my website on appengine with grails, i was trying to add the picasa plugin to it. Which in turn made me add other dependent plugins like, 1.Oauth 2.jquery 3.spring-events After installing the plugins , i also added google ...