Schlagwort-Archive: grails

Grails 1.4 canceled, next release version will be 2.0

Grails 1.4 should actually come after Grails 1.3. SpringSource recently decided to cancel 1.4 and name the next release 2.0. A lot of improvements and new features justify the new major version number. The changes of the upcoming 2.0 release … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit | Hinterlasse einen Kommentar

Displaying Hibernate statistics in a Grails app

Hibernate offers a statistics object (org.hibernate.stat.Statistics) that can be used to monitor the behavior of Hibernate at runtime. Statistics include connection count, max query execution time, cache hits/misses and many more. To access the statistics, inject the sessionFactory into a … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit , , , | 1 Kommentar

Mocking in Grails unit tests

Integration and functional tests in Grails are quite slow depending on the complexity of your code base. This results in slow continuous integration cyles. Pure unit tests are there for a better alternative most of the time. But mocking all the … Weiterlesen

Veröffentlicht unter Groovy and Grails | Verschlagwortet mit , , | 2 Kommentare

Different ways of using Liquibase in Grails

“You never develop code without version control, why do you develop your database without it? Liquibase is an open source, database-independent library for tracking, managing and applying database changes. It is built on a simple premise: All database changes are … Weiterlesen

Veröffentlicht unter Groovy and Grails, Java Persistence, Spring Universe | Verschlagwortet mit , , , ,

Print pages and page fragments using an IFrame and jQuery

In my current Grails project I am using jQueryUI to display information in a dialog window. When opening the dialog window, the content of the dialog is loaded via Ajax. One requirement we had to implement was a print button … Weiterlesen

Veröffentlicht unter Groovy and Grails, Java Web Frameworks | Verschlagwortet mit , , , , | 2 Kommentare

Solving Tomcat Encoding Problems in UTF-8 Webapps

The default configuration of Apache Tomcat 6 can cause encoding problems with URLs (links) that contain umlauts. In a Grails project we had the case that html links didn’t work. The problem was that the URL contained parameters with umlauts. … Weiterlesen

Veröffentlicht unter Groovy and Grails, Java Runtimes - VM, Appserver & Cloud, Java Web Frameworks | Verschlagwortet mit , , , | 3 Kommentare

Usage Tracking with Grails

When a web application goes live, it can be very useful to keep track of what people are doing with your application. It is important to discover the “hot spots” of your application which you should optimize in terms of … Weiterlesen

Veröffentlicht unter Groovy and Grails, Java Web Frameworks | Verschlagwortet mit , , ,