grails-plugin

Grails 2.5.4: Get all logged in users with HttpSessionListener

主宰稳场 提交于 2021-01-28 13:16:31
问题 I'm trying to get all the current user sessions using the app-info plugin but it doesn't compile in Grails 2.5.4 . Is there another way to get this information? I'm new to Grails. This link has some information including a reference to the app-info plugin but it's old and I wasn't able to get anything to compile. UPDATE I've added this custom class in src\groovy\UserSessions : package usersessions import javax.servlet.http.HttpSessionEvent import javax.servlet.http.HttpSessionListener /

Grails clean doesn't work

醉酒当歌 提交于 2021-01-28 00:10:31
问题 I'm using Grails -2.0.1 and when trying to run an app, I find a NoClassDefFoundError : Error 2012-10-16 15:24:25,301 [http-bio-8080-exec-9] ERROR errors.GrailsExceptionResolver - NoClassDefFoundError occurred when processing request: [GET] /workstation/track/computerName/login/MacOSX/true/username Could not initialize class workstation.server.TrackController. Stacktrace follows: Message: Error creating bean with name 'workstation.server.TrackController': Instantiation of bean failed; nested

How to add Grails Support to Eclipse 2019-06?

江枫思渺然 提交于 2020-03-05 00:16:35
问题 When searched using : http://dist.springsource.com/release/TOOLS/update/e4.4/ It does not show Grails in list (Referred: https://www.vogella.com/tutorials/Grails/article.html) Also Searched in Eclipse Marketplace : https://marketplace.eclipse.org/category/free-tagging/grails But it is not allowing to install in Eclipse version. Can anyone suggest how to create Grails projects in eclipse as i am first time configuring Grails? 来源: https://stackoverflow.com/questions/60520505/how-to-add-grails

Configuring CK Editor plugin in Grails

你。 提交于 2020-02-08 02:46:08
问题 How do we configure the CK Editor plugin in Grails? I'd like to use a couple of add-ons and customise the skin (theme) as well. The documentation by Stefano Gualdi, which seems to be the most prominent material, isn't too helpful. Also, I did find a builder which will let us customize (http://ckeditor.com/builder), but I couldn't find anything similar for CK Editor in Grails. Also, the builder gave the impression that I customize my package according to my needs, download it, and copy it onto

Grails richui autocomplete for cloned textbox

此生再无相见时 提交于 2020-01-24 09:44:45
问题 I am using grails richui autocomplete field in my app. It works fine for my static textbox but when I clone the textbox this feature is not working for the cloned textboxes and it shows no error even. Any idea of how to fix this Here is my code: <resource:autoComplete skin="default" /> at top <richui:autoComplete name="filterLocation1" id="filterLocation1" delimChar=";" class="location_txtbox" action="${createLinkTo('dir': 'abc/yyy')}" style="margin-left:5px;"/> This is my autocomplete field

How to integrate angular js into grails 2.3.4?

时光毁灭记忆、已成空白 提交于 2020-01-21 01:47:28
问题 I am running on grails 2.3.4 and though about integrating angularjs in my next application. I think the best way from the server side is to use grails REST integration in the domain and controller classes. However here I am stuck. How to get grails to communicate with angularjs?(over the index.gsp ?, If so how to integrate it?) What would be a good architecture? I really appreciate your answers!!! PS.: I know that there is a grails angular js plugin. However I do see any reason for using that

Spring security core framework getting configured twice in Grails Spring security core plugin

混江龙づ霸主 提交于 2020-01-16 06:40:43
问题 I am using Grails spring security core plugin version 3.0.3. The debug statements when configuring the spring security core framework are printed twice and the filter chain is also initialized twice WARN grails.plugin.springsecurity.SpringSecurityCoreGrailsPlugin - Configuring Spring Security Core ... Configuring Spring Security Core ... WARN grails.plugin.springsecurity.SpringSecurityCoreGrailsPlugin - ... finished configuring Spring Security Core ... finished configuring Spring Security

Grails having both Resource plugin and assets pipeline

百般思念 提交于 2020-01-14 13:53:05
问题 Hi I have my application running on grails 2.4.3 with resources plugin 1.2.8. We are planing to move to asset pipeline. Can we have both plugin working together as we will update code partially. Does anyone have any experience. 回答1: asset-pipeline does its work when building the war file, but resources works at runtime after deployment. So there wouldn't be anything for resources to do. They also use different folders (asset-pipeline under grails-app/assets , resources under web-app ) so by

Grails Detect if a Plugin is Installed

…衆ロ難τιáo~ 提交于 2020-01-13 08:49:07
问题 Is there a way in Grails to Detect that a plugin is installed. For example I need to know if the "Acegi" plugin is installed. If it is then I can run different Code. If the plugin is not installed (which is a viable option) then I can run different code. Thanks in Advance. 回答1: You can use the plugin manager for this: import org.codehaus.groovy.grails.plugins.PluginManagerHolder if (PluginManagerHolder.pluginManager.hasGrailsPlugin('acegi')) { ... } 回答2: Update for Grails 2.4+ Note that the

Change login page for spring security plugin in grails

ぃ、小莉子 提交于 2020-01-12 04:44:10
问题 Is there a way that I can create my own custom login page and send the data to login controller of spring security plugin. I currently see my code redirecting directly to the default login page of spring security plugin. 回答1: The 2.0 plugin comes with its own auth.gsp page, so if you create your own (either modify the plugin's or create your own) and put it in grails-app/views/login/auth.gsp it will be used. In 1.2.x the auth.gsp is in your app source, so edit it there. If you want to further