There is a little difference between tokenize and split in Groovy:

def csv = "1,,3,4,5"

println csv.split(",")
println csv.tokenize(",")

results in

[1, , 3, 4, 5]
[1, 3, 4, 5]

Note that tokenize ignores the empty element.

Edit: I just found this blog-post covering the same topic

 

I’m a big fan of Grails and working with IntelliJ IDEA is indeed a pleasure. Since a few weeks IDEA X is released and this blogpost gives a very nice idea of what is new.

 

Comming from PHP I had some rough time to get into such a complex persistence-framework as Hibernate is one.
Anyway, this blog-series here is def. great to read:

http://andresteingress.wordpress.com/2010/03/23/getting-the-persistence-context-picture-part-i/
http://andresteingress.wordpress.com/2010/04/08/getting-the-persistence-context-picture-part-ii/
http://andresteingress.wordpress.com/2010/04/20/getting-the-persistence-context-picture-part-iii/

 

I’m a big fan of IntelliJ IDEA for Grails development. Sadfully I had huge problems since I installed Kubuntu 10.04.
The indexing crashed often, after a few minutes working all references broke down etc.
After some searching I found this

It seems that IDEA has some problems with the encryption of the home-dir. So I followed the threads advice and stored index-files etc. outside of my home-dir and voilĂ  it works like a charm.

 

Ted Naleid has a wonderful post about batch import performance with Grails and MySQL. Nice to read.

 

Hi there,

I’ve just released version 1.4.2.1 of the Grails jQuery-plugin.

Change jQuery-version
Sometimes you need an older version of jQuery but you also want to take the advantage of grails build-in AJAX-tags.
Since 1.4.2.1 you can specify the following in your application Config.groovy-file:

jquery {
sources = ‘jquery’ // Holds the value where to store jQuery-js files /web-app/js/
version = ’1.4.1′ // The jQuery version in use
}

sources Specifies the folder underneath web-app/js where the jQuery-lib should be\\
version Specifies the version of the lib

The settings above will result in js/jquery/jquery-1.4.1.min as location

Changelog:
* Applied: GRAILSPLUGINS-1919
* Applied: GRAILSPLUGINS-2056
* Added jQuery 1.4.2Designed by Tim Sainburg from Brambling DesignDesigned by Tim Sainburg from Brambling Design

 

Woah, I totally missed the jQuery 1.4.2 release.
Guess I should release a new version of the Grails-jQuery-plugin soon ;)

 

Today jQuery 1.4.1 has been released and so here is also the first release of the grails-jQuery-plugin for it.

* Fixed: GRAILSPLUGINS-1865
* Fixed: GRAILSPLUGINS-1864, thanks to Nick Zhu
* Added jQuery 1.4.1

For people encountering problems with the new jQuery-version, use an older one and set the version-attribute in JQueryConfig.groovy located under jquery-1.4.1.1/grails-app/conf/

Cheers

 

I’m pleased to announce the Grails-jQuery-plugin in version 1.4.0.1.

* Upgrade to jQuery 1.4
* Wiki-page is now up-to-date
* Moved sources to http://gitorious.org/grails-jquery
* Added licenseinformation: Apache 2.0
* Fixed: http://jira.codehaus.org/browse/GRAILSPLUGINS-1793
* Fixed: http://jira.codehaus.org/browse/GRAILSPLUGINS-1296
* Fixed: http://jira.codehaus.org/browse/GRAILSPLUGINS-1824
* Can’t reproduce: http://jira.codehaus.org/browse/GRAILSPLUGINS-953

I’ve tested the release with Grails 1.2, if there are problems with some older Grails versions please file a bugreport at JIRA or leave a comment.

Before an upgrade please check http://jquery14.com/day-01/jquery-14 for changes which may break your code.

 

Finaly, Grails 1.1 has been released!

© 2011 Galeon's Howlingwolf Suffusion theme by Sayontan Sinha
WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera