Skip to content

Commit 257c146

Browse files
author
marcpalmer
committed
More README refinements
git-svn-id: https://svn.codehaus.org/grails/trunk@4128 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent 6bff04f commit 257c146

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,28 +67,31 @@ To upgrade your existing Grails projects you must run "grails upgrade" for each
6767

6868
There are some unavoidable issues that may affect you when upgrading to 0.5 from a previous version:
6969

70-
1. Your custom taglibs that call other tags will need to be changed. Tags called from within a tag now return a string containing the content instead of writing to out, so you must do something like:
70+
1. If you have an old default index.jsp, it will not function correctly due to a change in a property name. Remove the file if you have not customized it, or change the reference to the "controllers" property to "controllerClasses"
71+
72+
2. Your custom taglibs that call other tags will need to be changed. Tags called from within a tag now return a string containing the content instead of writing to out, so you must do something like:
7173

7274
out << theOtherTag(attrs)
7375

74-
2. Your taglibs, if they call their own closures as if they are methods, will not function correctly if the closure has less than 3 arguments. Change such code to:
76+
3. Your taglibs, if they call their own non-tag closures as if they are methods, will not function correctly if the closure has less than 3 arguments. Change such code to:
7577

7678
yourClosureName.call(args)
7779

78-
3. Tag bodies return strings instead of writing to out, so you must change code that calls body() to:
80+
4. Tag bodies return strings instead of writing to out, so you must change code that calls body() to:
7981

8082
out << body()
8183

82-
4. View loading mechanisms have changed, so if you need to load a view directly or check for its existence, you must now use a resource loader:
84+
5. View loading mechanisms have changed, so if you need to load a view directly or check for its existence, you must now use a resource loader:
8385

8486
def resourceLoader = ctx.containsBean('groovyPageResourceLoader') ?
85-
ctx.groovyPageResourceLoader : ctx
87+
ctx.groovyPageResourceLoader : ctx
88+
def resource = resourceLoader.getResource(uri)
8689

87-
if(resourceLoader.getResource(uri)) {
88-
...
90+
if(resource && resource.file && resource.file.exists()) {
91+
...
8992
}
9093

91-
5. Note the deprecation warnings you see in your console, these need to be tackled prior to 0.6 where these old features will be removed.
94+
6. Note the deprecation warnings you see in your console, these need to be tackled prior to 0.6 where these old features will be removed.
9295

9396
=============================================================================
9497
Enjoy working with Grails.

0 commit comments

Comments
 (0)