grails-plugin

Grails - Database Reverse Engineer plugin not found

不羁的心 提交于 2019-12-23 05:32:29
问题 Environment Grails 2.4.4 PostgreSQL 9.4 JDK 1.7 I've been trying to get this plugin to work. (I'm still a grails newbie, not to mention programming.) I tried to do everything I can find out there but still get this untimate error message. Loading Grails 2.4.4 |Configuring classpath |Running pre-compiled script |Script 'DbReverseEngineer' not found, did you mean: 1) SetVersion 2) GenerateRestfulController 3) GenerateViews 4) GenerateController 5) DbmGenerateChangelog Please make a selection or

Grails Acegi plugin annotations

扶醉桌前 提交于 2019-12-23 05:04:13
问题 I'm using the annotations provided by the Spring Security (AKA Acegi) plugin. I have controller actions annotated with @Secured(['ROLE_ADMIN', 'ROLE_USER']) To indicate that they should be available to administrators and regular users. But now I need to indicate that an action is available to administrators and unregistered users. Is it possible to use annotations to indicate a user without any role, i.e. unregistered? Thanks, Don 回答1: Here's a solution that requires that you not be logged in

Grails: How do I make my page load a filter when the page loads?

人盡茶涼 提交于 2019-12-23 04:38:41
问题 On index.gsp I have this to redirect it to list.gsp so I'm imagining is should be something like this: ${response.sendRedirect("entry/list")} My filter is just one textField and two datePickers with drop down boxes (DD-MMM-YYYY) and they should be by default filtered from today's date to infinity. So it should show me only the events that have not happened yet, but the old ones should still be in the database. Here are the links to my last 3 questions for background information I have a bunch

Grails 3.1.0.M2 Database Reverse Engineering

感情迁移 提交于 2019-12-23 02:25:13
问题 Need of help. I am new to Grails, My question is How to do db-reverse-engineer.? I did it in Grails 2.5.1 but I am struggling with Grails 3.1.0.M2 version. Thanks in advance. 回答1: There's no plugin for Grails 3. I started to convert the older one but it's more work than I was expecting because it has to work with Hibernate 4, and the old plugin only works with Hibernate 3. But the generated files wouldn't be any different in Grails 3 than in Grails 2 since GORM has stayed rather consistent.

How do I implement a custom FilterSecurityInterceptor using grails 1.3.2 and the plugin spring-security-core 1?

随声附和 提交于 2019-12-22 10:56:53
问题 I'm writing a grails 1.3.2 application and implementing security with spring-security-core 1.0. For reasons outside the scope of this question, I'm implementing a custom FilterSecurityInterceptor in addition to the out of the box interceptors. I've started with a blog entry on the topic and attempted to adjust it for Spring Security 3 without much success. Loosely following the blog (since it is based on an older version of Spring Security), I've created the following classes: A org

Grails spring security login issue: /auth?login_error=1

独自空忆成欢 提交于 2019-12-22 09:46:43
问题 I installed SpringSecurity Successfully, Upon user registration and verifying the user using Spring Security UI' RegisterController closures, I can see the user is successfully logged in using the springSecurityService.reauthenticate. However if I logout and try logging in using the auth screen provided by the spring security I always get the http://:port/spoofsecurity/login/auth?login_error=1 I can see in the database that the user is there and unlocked, and enabled. Appreciate any thoughts

Exclude plugin for specific environment

断了今生、忘了曾经 提交于 2019-12-22 05:33:07
问题 I'm using grails 2.1. I need to exclude a plugin when building for production. This post mentions adding scopes to the plugins. I believe this requires editing indivudual plugin descriptors? I would like to define plugins to exclude in one location. I have tried adding the following to config.groovy: environments { production { plugin.excludes='grails-melody' } } When I check the war it still contains the melody folder under WEB-INF/plugins. I should add that most of the application plugins

Grails Inline Plugins: Cannot Upgrade a plugin that is configured via BuildConfig.groovy

眉间皱痕 提交于 2019-12-22 05:21:53
问题 Our app is split into a main application and a few plugins. We're using inline plugins via the BuildConfig.groovy file. When it is time to WAR the whole thing up for production I'm getting the following message: You cannot upgrade a plugin that is configured via BuildConfig.groovy, remove the configuration to continue. And then Grails wants to uninstall the plugin because it can't find it in application.properties. But during development, having it in application.properties causes issues. So

handle successful login event with spring security

好久不见. 提交于 2019-12-21 17:27:00
问题 My Grails app uses the Spring Security plugin. Whenever a user successfully logs in I want to: store something in the session redirect them to a custom page (depending on their role) I need to handle logout events similarly, which was pretty straightforward because the plugin provides a bean named logoutSuccessHandler that can be overriden. I was hoping to similarly find a bean named loginSuccessHandler , but no such luck. I read the page in the plugin's docs about event handling, but neither

How to setup Grails and AngularJS partial templates

别来无恙 提交于 2019-12-21 17:22:59
问题 I am realizing a project using AngularJS for the front end , and Grails for the backend. Angular JS => Single page application Grails => REST API to be used in the WebApp itself and 3rd party apps. This is how I setup the project: web-app | |_____ js ( angular controllers, modules, partial templates.) | |_____ images | |_____ css grails-app | |_____ views ( in here I have my main view, the one I use at the first user request ) Rather than using the Resources Plugin, I prefer building my own