Grails Tutorials

Your Source of Grails & Groovy Tutorial, How To, and Example Links

Log In or Register

Most Viewed

Displaying most viewed tutorials for all time
1 - 10 from 1462 tutorials

In web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery.


  • Currently 3.5

3.5

2 votes; 8655 clicks; posted on 17-Jul-2008

Tags: grails; jquery;

Here's how to get started with Grails in NetBeans IDE 6.5.


  • Currently 5.0

5.0

1 votes; 8565 clicks; posted on 20-Jul-2008

Tags: grails; how-to; introduction;


A tutorial showing how do develop a Grails application with a GWT UI.


  • Currently 3.33

3.33

3 votes; 7501 clicks; posted on 16-Jun-2008

Tags: grails; ajax; plugin; gwt;

After I quit looking into the Ext JS library because of the license problems, I wanted to use another AJAX framework which comes bundled with nice widgets. Before I started with Ext I had already looked into The Yahoo! User Interface Library (YUI) but preferred Ext that time. So switching back to YUI makes sense... The only reason I was hesitating was because of Yahoo's possible takeover by Microsoft as it would be uncertain what would happen to YUI on the short and long term. The news that the deal between Microsoft and Yahoo seems to be off the table definitely, made my choise to use YUI easy. Today I created an example on how to use YUI's DataTable within a Grails application.


  • Currently 0

0

0 votes; 7224 clicks; posted on 16-Jun-2008

Tags: ajax; gsp; plugin;

I've been playing around with Grails and a bit of GWT lately, and it sure is a lot of fun. I've made some applications that use Grails, GWT, and GoogleMaps (see: Find A Wii Fit), and thought I'd write a quick tutorial on how to do it - it can be a little tricky. This application is fairly simple - it displays a google map view that is centered on the user's location, and inserts a marker where they are located. I am using MaxMind to turn an IP into latitude and longitude coordinates. They cost money and you may be able to find a free one, but they aren't that expensive (something like $20 for 50,000 lookups) and I've been pretty happy with them so far.


  • Currently 5.0

5.0

2 votes; 6198 clicks; posted on 15-Jun-2008

Tags: plugin; grails; ajax; gwt;

It seems the documentation for this JQuery autocomplete plugin isn't uptodate. Using a remote JSON call is actually easier that you might think from reading the docs. In this example i'm using a Grails controller class called KandidaatController. It contains one method to find Kandidaat objects having a lastname starting with the entered string. The objects found are returned in JSON format.


  • Currently 0

0

0 votes; 6178 clicks; posted on 23-Aug-2008

Tags: grails; ajax; json; jquery;


An introduction to threading with Groovy.


  • Currently 5.0

5.0

1 votes; 6112 clicks; posted on 17-Aug-2008

Tags: groovy; threading;

JSecurity is a Grails plugin that adds authentication and authorization to a web application. First we go about creating a project and installing the plugin:


  • Currently 0

0

0 votes; 4699 clicks; posted on 22-Aug-2008

Tags: plugin; security; grails; jsecurity;

Note: for the following "solution" to be viable you don't have to care about formatting. If you need formatting in your exported file then you will need a special library in which case I can't help :) There were already several Grails posts available with tips on how to get data from Grails to Excel. While the solutions were great, they weren't very well suited to large amounts of data. Most solutions used something like JExcelApi. Even though the library is great, it doesn't perform very well when writing large amounts of data (which is mentioned on the JExcelApi site). Creating new java objects is slow. With JExcelApi you have to create a new object for each cell (you can't change the coordinates of a cell after creating the object so you can't reuse an object). Since I had to export at least 30.000 rows, maybe more, each with 10 columns of data...well...that's a lot of objects. That was only one of the problems though. I was using Hibernate criteria for getting the data that was supposed to go into the Excel file. Usually you do something like below (this is not the actual statement, just an example):


  • Currently 0

0

0 votes; 4619 clicks; posted on 21-Aug-2008

Tags: grails;

Last month, I developed some simple web services using WCF and consumed it using various web service frameworks in Java. Now I have implemented the web service client using GroovyWS, which is an add-on module to Groovy. It uses CXF under the hood. To add the GroovyWS library, I simply copied its JAR file groovy-all-1.5.6.jar into the Groovy's lib directory (it can either go in {groovy.home}/lib or {user.home}/.groovy/lib according to the groovy-starter.conf file). Then run the following script from Groovy Console:


  • Currently 2.0

2.0

1 votes; 4566 clicks; posted on 18-Aug-2008

Tags: web-services; groovy;


597 users registered

1462 posts currently