Most common grails plugins - grails

One of the features which makes Grails wonderful is the plugin architecture. Over the years, it has fostered a large community of developers and users that are continuously enhancing the value which Grails provides. I hardly ever find myself working on a project which doesn't have a handful of 3rd party and/or custom plugins.
What are some of your "go to" plugins? (e.g. the plugins which you find yourself almost always adding to your projects) What makes those plugins soo useful?

I would say in my case:
Database migration to have more control of how the database is created/updated, etc.
Spring Security for authentication and authorization
JQuery and JQuery UI because JQuery rocks
Spring Cache to manage page caching
Joda-time to handle dates more easily
Codenarc to help keep coding standards and coding rules
There are other that I think are great but they depend more on your needs like:
Searchable
Rest
jms
Datasources

My list comprise of:
SpringSecurity for authentication & authorization
Quartz for doing scheduled jobs.
Mail plugin
Searchable is also noticable, though in most of the time I feel it doesn't take much to write the searching part myself.
Above non-default plugins saved me lots of time coding. For the rest, I think you could go and take a look at here.

bean-fields is great for making your forms DRYer and allowing you to define the layout of your forms in one place.

I like the spring-security-* family of plugins. Writing authentication and authorization code was always the least favourite part of creating websites for me.

Spring-security Plugin
jasper Plugin
Rich-ui Plugin
Searchable Plugin
Export Plugin

The spring security plugin for sure and the AuditLogging plugin.

Spring-security-core for authentication
remote-pagination for paginate with ajax on divs
jasper for reports
jquery and jquery-ui
Quartz for scheduling jobs
Searchable for searching capabilities

In addition, I recommend JQGrid plugin for table manipulation.It's easy to use and has many futures like sorting, paging,crud operations ,json support, etc.

Related

Create Content Management System (CMS) in grails

I'm an intermediate user in grails and I want to create a Content Management System and an end user application in grails. It mainly involves video uploading and downloading in cloud servers.
I seen the Most Important features for cms
Can any one suggest about architecture and how it can be easily implement in grails?
Thanks in advance.
I agree with #elias that a CMS needs tons of work.
As to your question, I suggest you use an existing one, just like #mostkiteau has mentioned, or go to http://grails.org/plugins/search?q=cms for more CMS plugins for Grails.

Symfony framework voting system

Can someone give me some links to a maybe guide or to a symfony plugin, for voting system.
Thanks.
This is a star rating system plugin for Symfony. I am not sure if you are looking for a polling system or a voting system.
http://www.symfony-project.org/plugins/mpStarRatingPlugin
I have not tested this.
I am not aware of any polling plugins for the latest version of symfony.
What would be useful to know is what type of voting you need, as there may be good solutions that you can incorporate into your Symfony project easily, such as this Jquery star rating, which will take care of making the frontend implementation pretty.

Good CMS (preferable java-based) to integrate with grails app

We have grails application that is damn good. Grails application will be run under tomcat/jetty. I'm looking for a good (preferable java-based) CMS which could be deployed to same webserver and integrated with our application. Our app provides some data (xml/json) and we need that CMS display this data on some static pages (I'm thinking of java-script gadgets that just connects to our grails same-host-same-port-different-context app).
If someone know some other techniques how to easily embed data into CMS static pages - would be nice to hear.
You can use Weceem CMS
Depending on what features you need for your CMS, Weceem could fit to your requirements. It is a grails plugin itself (with advantages like being unobtrusive).
Be aware that currently it is not compatible with Nimble and Commentable plugins (will be in version 0.9).
I haven't had a chance to play with it, but Alfresco Plugin allows you to connect to Alfresco. I imagine it's more of a document management integration at this point, but Alfresco can handle WCM as well.
You ought to find the answer at http://www.cmsmatrix.org/
It's the first I would recommend to anyone looking for a CMS. Use the wizard, select the features you want, get details of matching CMS and make your comparison then choice.

Adding search/filter to a scaffolded list.gsp

I've been looking in some of the latest Grails books and many open source projects for samples and best practices for adding search/filter functionality to scaffolded list.gsp:s, eg making it work with pagination and sorting etc. This may be a simple task, but being a Grails newcomer it would be of great benefit in having some thorough samples to look at.
The closest thing I've found is the FilterPane plugin, but that is a very general solution - so the code may be unnecessarily complex to retrofit to a more custom search/filter. Does anyone have or has anyone seen good sample code for this? I'm thinking it's a very common requirement so it must be out there...
Check out http://jira.codehaus.org/browse/GRAILS-5225, it's a set of alternate scaffolding templates. They support filtering and searching (if you add searching plugin). The scaffolding templates take a bit to get working, but they will show you how to do things.
Another plugin to check out is the Criteria Plugin.
There is also UberScaffoling Plugin, which allows you to inject code into scaffolded templates, of which I am the author, but I haven't posted updated in a while and I think what's on there may have a bunch of bugs right now. Let me know if you are interested in it - I could email you the latest version (need to find the time to post on grails plugin repo).
Check this blog post - https://blog.uni-koeln.de/rrzk-knowhow/2012/03/14/add-filter-pane-to-your-customized-scaffolded-templates-for-list-pages/
Only downside is need some styling re-work for the filterpane to look neat.
filterpane:2.0.1.1
Grails 2.0.4

'WebControls' for Ruby on Rails

I've recently started working with RoR for some projects and I quite like the framework - however coming from an ASP.NET background I'm quite fond of the idea of being able to purchase & drop in reusable components/control such as those from telerik, without having to 'reinvent'.
I suppose it would be possible to maybe create my own using partials or plugins or similar, but I'm wondering if there is anything out there already, or perhaps alternatives which could be massaged into place, like javascript widgets etc?
I don't know of any commercial components or "controls", but there's thousands (probably, I haven't counted them) of plugins out there freely available, to do a great many things for you, some of which would probably count as "controls". Unfortunately, there's no one place to go and find them, and the quality is depressingly variable, but there are a number of plugin indexes like http://agilewebdevelopment.com/plugins/ that might help in finding what you want while weeding out the dross.
Ext JS is a great GUI toolkit. I can't say that it entirely fits in with the RoR way of doing things, but if you write your controllers to return JSON it isn't too bad.
One of the big differences between Ruby/Rails and the .Net world is the fact that most of the available plugins are open-source and integrate at the code level. There is an incredible array of plugins for Rails, and it is very straight forward to write your own. Due to the nature of Ruby you can hook into any just about any part of the language and framework, giving you impressive extensibility.
I am not sure how Web Controls work, but it sounds like they are a "black-box" that provides an end-to-end solution for both UI and data-level operations ... ?
Many of the Rails plugins do provide both UI and data aspects. An example would be "restful_authentication" which provides you with both some basic forms for login and user registration as well as an authentication module and a Active-Record model. Again, this operates at a code-level, so will actually push the relevant code into your codebase when you install and "generate" the authentication modules.
As for "widgets", there is no equivalent in Rails, per-se, but there are a number of JavaScript libraries that provide similar functionality. I use and recommend jQuery UI, myself.
Dojo has a widget library which might meet your needs.

Resources