grails-plugin

Creating a Grail Jquery Modal Window and Form posting with ajax?

半城伤御伤魂 提交于 2019-12-02 01:45:42
问题 I have the following code : <body> <div id="dialog-form" title="Create a new Comment"> <form> <fieldset> <label for="name">Enter your Comment Please </label> <textarea rows="6" cols="2" name="commentArea" id="commentArea" ></textarea> </fieldset> </form> </div> <button id="create-user">Create new user</button> </body> and my Modal Window using jquery-UI <g:javascript> $(function(){ $("#dialog-form").dialog ({ autoOpen:false, height:300, resizable:false, width:350, modal:true, buttons: {

Creating a Grail Jquery Modal Window and Form posting with ajax?

☆樱花仙子☆ 提交于 2019-12-02 00:52:33
I have the following code : <body> <div id="dialog-form" title="Create a new Comment"> <form> <fieldset> <label for="name">Enter your Comment Please </label> <textarea rows="6" cols="2" name="commentArea" id="commentArea" ></textarea> </fieldset> </form> </div> <button id="create-user">Create new user</button> </body> and my Modal Window using jquery-UI <g:javascript> $(function(){ $("#dialog-form").dialog ({ autoOpen:false, height:300, resizable:false, width:350, modal:true, buttons: { "Attach Comment": function() { alert('assum it already submitted'); // ? ? ? this time what can i add to

Grails export plugin don't download any file

孤街浪徒 提交于 2019-12-01 19:12:16
I want to use grails export plugin to get my Domain classes exportables into xls and csv files. In my main layout named front.gsp , I did that : <!DOCTYPE html> <html lang="en"> <head> ... <g:layoutHead /> </head> <body> <sec:ifLoggedIn> <r:require module="export"/> <export:formats formats="['csv', 'excel', 'ods', 'pdf', 'rtf', 'xml']" action="exportTest" /> ... <g:layoutBody /> <r:layoutResources/> <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.min.js')}"></script> <script type="text/javascript" src="${resource(dir: 'js', file: 'bootstrap.min.js')}"></script> <script

Grails export plugin don't download any file

浪尽此生 提交于 2019-12-01 19:07:39
问题 I want to use grails export plugin to get my Domain classes exportables into xls and csv files. In my main layout named front.gsp , I did that : <!DOCTYPE html> <html lang="en"> <head> ... <g:layoutHead /> </head> <body> <sec:ifLoggedIn> <r:require module="export"/> <export:formats formats="['csv', 'excel', 'ods', 'pdf', 'rtf', 'xml']" action="exportTest" /> ... <g:layoutBody /> <r:layoutResources/> <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.min.js')}"></script>

How to integrate an LDAP user with the PERSON table created by Spring Security in Grails?

人盡茶涼 提交于 2019-12-01 12:08:32
We are creating a grails aplication where we want the user to log in using their Active Directory credentials. Additionally, we want to give the business owner of this application the ability to control who has access to certain links (actions). Because of this we are using the following plugins in our grails application: Spring Security Core Spring Security LDAP Spring Security UI Because we want to empower the business user to create customized roles with certain permissions(actions) on the fly when necessary, we think that the best Spring Security Configuration is the Requestmap database

How to integrate an LDAP user with the PERSON table created by Spring Security in Grails?

心不动则不痛 提交于 2019-12-01 11:18:44
问题 We are creating a grails aplication where we want the user to log in using their Active Directory credentials. Additionally, we want to give the business owner of this application the ability to control who has access to certain links (actions). Because of this we are using the following plugins in our grails application: Spring Security Core Spring Security LDAP Spring Security UI Because we want to empower the business user to create customized roles with certain permissions(actions) on the

GORM fails to realize Domain classes from a plugin are GORM classes

大憨熊 提交于 2019-12-01 07:39:00
I am trying to use a Grails Project as a Plugin to basically have my domain classes in the Plugin and then use them in multiple Grails projects. I've done this: grails create-app web grails create-app plugin create a settings.gradle in the root directory of both projects with include 'plugin', 'web' then I added spring security to the plugin and used s2-quickstart to create a user and a role domain class and added some default users to the Bootstrap.groovy. Starting the plugin project alone doesn't show any issues. Now I added the plugin as a dependency to the web project: compile (':plugin')

Grails mail plugin configuration for MS Exchange server

巧了我就是萌 提交于 2019-12-01 07:03:40
I am able to send email using my gmail account from my grails application but when I use MS exchange server account I am getting this error Message: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.exg6.exghost.com/, 25; timeout -1; Configuration I used is : mail { host = "smtp.exg6.exghost.com" port = 25 username = "xxxx" password = "xxxx" props = ["mail.smtp.auth":"true", "mail.smtp.socketFactory.port":"25", "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory", "mail.smtp.socketFactory.fallback":"false

GORM fails to realize Domain classes from a plugin are GORM classes

别等时光非礼了梦想. 提交于 2019-12-01 05:59:08
问题 I am trying to use a Grails Project as a Plugin to basically have my domain classes in the Plugin and then use them in multiple Grails projects. I've done this: grails create-app web grails create-app plugin create a settings.gradle in the root directory of both projects with include 'plugin', 'web' then I added spring security to the plugin and used s2-quickstart to create a user and a role domain class and added some default users to the Bootstrap.groovy. Starting the plugin project alone

Grails mail plugin configuration for MS Exchange server

穿精又带淫゛_ 提交于 2019-12-01 05:53:31
问题 I am able to send email using my gmail account from my grails application but when I use MS exchange server account I am getting this error Message: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.exg6.exghost.com/, 25; timeout -1; Configuration I used is : mail { host = "smtp.exg6.exghost.com" port = 25 username = "xxxx" password = "xxxx" props = ["mail.smtp.auth":"true", "mail.smtp.socketFactory.port":"25",