<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8833984458470326479</id><updated>2024-09-22T03:59:32.482-07:00</updated><category term="grails"/><category term="modular applications"/><category term="plugins"/><category term="grails 1.2"/><category term="validation"/><title type='text'>Groovy And Grails Tips</title><subtitle type='html'>This blog describes my experiences using groovy and grails to develop enterprise applications in a large organization, and seeks to help others with tips and techniques I have learned in working with the framework</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://keithsgrailstips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://keithsgrailstips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Keith Ganger</name><uri>http://www.blogger.com/profile/10782590172641237879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_c7BnYI1KVQA/Sy0FdAYwPZI/AAAAAAAAAAM/uZWCHam19qE/s1600-R/3b9de83.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8833984458470326479.post-171183662452874218</id><published>2010-02-04T09:28:00.000-08:00</published><updated>2010-02-04T09:28:39.299-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grails"/><category scheme="http://www.blogger.com/atom/ns#" term="grails 1.2"/><category scheme="http://www.blogger.com/atom/ns#" term="validation"/><title type='text'>Use Exceptions To Control Validation Flow.</title><summary type="text">When using default grails scaffolding a controller action, for example save, will look some thing like this


def save = {
        def fooInstance = new Foo(params)
        if(!fooInstance.hasErrors() &amp;amp;&amp;amp; fooInstance.save()) {
            flash.message = &quot;Foo ${fooInstance.id} created&quot;
            redirect(action:show,id:fooInstance.id)
        }
        else {
            render(view:&#39;</summary><link rel='replies' type='application/atom+xml' href='http://keithsgrailstips.blogspot.com/feeds/171183662452874218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://keithsgrailstips.blogspot.com/2010/02/use-exceptions-to-control-validation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/171183662452874218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/171183662452874218'/><link rel='alternate' type='text/html' href='http://keithsgrailstips.blogspot.com/2010/02/use-exceptions-to-control-validation.html' title='Use Exceptions To Control Validation Flow.'/><author><name>Keith Ganger</name><uri>http://www.blogger.com/profile/10782590172641237879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_c7BnYI1KVQA/Sy0FdAYwPZI/AAAAAAAAAAM/uZWCHam19qE/s1600-R/3b9de83.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8833984458470326479.post-8889451147863802726</id><published>2010-01-04T14:05:00.001-08:00</published><updated>2010-01-04T14:05:49.400-08:00</updated><title type='text'>Grails Plugins With In-House Repository Part 2.</title><summary type="text">In part one we covered setting up the subversion repository. &amp;nbsp;In this post we are going to look at how to configure your plugin project to publish to your repository, and how to configure your projects to use plugins from this repository.&amp;nbsp;

In your plugin project you will need to add a new file BuildConfig.groovy under grails-app/conf. 
As you probably guessed from the name, this file </summary><link rel='replies' type='application/atom+xml' href='http://keithsgrailstips.blogspot.com/feeds/8889451147863802726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://keithsgrailstips.blogspot.com/2010/01/grails-plugins-with-in-house-repository_04.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/8889451147863802726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/8889451147863802726'/><link rel='alternate' type='text/html' href='http://keithsgrailstips.blogspot.com/2010/01/grails-plugins-with-in-house-repository_04.html' title='Grails Plugins With In-House Repository Part 2.'/><author><name>Keith Ganger</name><uri>http://www.blogger.com/profile/10782590172641237879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_c7BnYI1KVQA/Sy0FdAYwPZI/AAAAAAAAAAM/uZWCHam19qE/s1600-R/3b9de83.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8833984458470326479.post-1709714779014970270</id><published>2009-12-21T14:21:00.000-08:00</published><updated>2009-12-21T14:24:24.942-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grails"/><category scheme="http://www.blogger.com/atom/ns#" term="modular applications"/><category scheme="http://www.blogger.com/atom/ns#" term="plugins"/><title type='text'>Grails Plugins With In-House Repository Part 1 (Introduction).</title><summary type="text">In this series of posts I am going to cover how to use grails to create and use a plugins to develop your application. &amp;nbsp; 

Grails plugin system is one of the most powerful features of the framework. If you have been using grails for any length of time you have probably started using some of the rich plugins available in the grails plugin repository. &amp;nbsp; Grails plugins go much further than</summary><link rel='replies' type='application/atom+xml' href='http://keithsgrailstips.blogspot.com/feeds/1709714779014970270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://keithsgrailstips.blogspot.com/2009/12/grails-plugins-with-in-house-repository.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/1709714779014970270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/1709714779014970270'/><link rel='alternate' type='text/html' href='http://keithsgrailstips.blogspot.com/2009/12/grails-plugins-with-in-house-repository.html' title='Grails Plugins With In-House Repository Part 1 (Introduction).'/><author><name>Keith Ganger</name><uri>http://www.blogger.com/profile/10782590172641237879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_c7BnYI1KVQA/Sy0FdAYwPZI/AAAAAAAAAAM/uZWCHam19qE/s1600-R/3b9de83.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8833984458470326479.post-1474223578560911089</id><published>2009-01-09T14:23:00.000-08:00</published><updated>2010-01-13T07:38:04.495-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grails"/><category scheme="http://www.blogger.com/atom/ns#" term="modular applications"/><category scheme="http://www.blogger.com/atom/ns#" term="plugins"/><title type='text'>Releasing a New Version of an Existing Plugin</title><summary type="text">In this post I am going to cover releasing a second version of your plugin. &amp;nbsp;It is inevitable that you will need to make changes to your plugin after its first release.&amp;nbsp; I would recommend also reading part one, and part two of this series. Here are the steps you will need to follow to&amp;nbsp;successfully&amp;nbsp;update your plugin. 

Step one: You need to obtain a working copy of your source</summary><link rel='replies' type='application/atom+xml' href='http://keithsgrailstips.blogspot.com/feeds/1474223578560911089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://keithsgrailstips.blogspot.com/2009/01/releasing-new-version-of-existing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/1474223578560911089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8833984458470326479/posts/default/1474223578560911089'/><link rel='alternate' type='text/html' href='http://keithsgrailstips.blogspot.com/2009/01/releasing-new-version-of-existing.html' title='Releasing a New Version of an Existing Plugin'/><author><name>Keith Ganger</name><uri>http://www.blogger.com/profile/10782590172641237879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_c7BnYI1KVQA/Sy0FdAYwPZI/AAAAAAAAAAM/uZWCHam19qE/s1600-R/3b9de83.jpg'/></author><thr:total>0</thr:total></entry></feed>