Skip to content

Commit 3f13fd1

Browse files
author
marcpalmer
committed
Updated README to include known issues
git-svn-id: https://svn.codehaus.org/grails/trunk@4116 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent c79c236 commit 3f13fd1

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

README

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ http://grails.org
44

55

66
1. INTRODUCTION
7+
=============================================================================
8+
79

810
Grails is a web based application framework based on the Groovy language that endorses the DRY (don't repeat yourself) and coding-by-convention philosophies. Grails runs on the Java Virtual Machine and thus has access to the entire Java Platform.
911

@@ -21,7 +23,10 @@ With Grails you can easily create web applications thanks to:
2123

2224
- powerful web framework with dynamic tag libraries and support for Groovy Server Pages (GSP)
2325

26+
2427
2. GETTING STARTED
28+
=============================================================================
29+
2530

2631
To get started takes these steps:
2732

@@ -49,12 +54,43 @@ On a Unix-like computer these steps are done as follows:
4954

5055
You can now run the grails command, as follows:
5156

52-
> grails
57+
> grails create-app YourProject
58+
59+
For more info checkout the Grails homepage at http://grails.org
60+
61+
62+
3. UPGRADING / KNOWN ISSUES
63+
=============================================================================
64+
65+
66+
To upgrade your existing Grails projects you must run "grails upgrade" for each project.
67+
68+
There are some unavoidable issues that may affect you when upgrading to 0.5 from a previous version:
69+
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:
71+
72+
out << theOtherTag(attrs)
73+
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:
75+
76+
yourClosureName.call(args)
77+
78+
3. Tag bodies return strings instead of writing to out, so you must change code that calls body() to:
79+
80+
out << body()
81+
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:
83+
84+
def resourceLoader = ctx.containsBean('groovyPageResourceLoader') ?
85+
ctx.groovyPageResourceLoader : ctx
5386

54-
When this command shows a help message you are ready to start using Grails. For more info checkout the Grails homepage at:
87+
if(resourceLoader.getResource(uri)) {
88+
...
89+
}
5590

56-
http://grails.codehaus.org
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.
5792

93+
=============================================================================
5894
Enjoy working with Grails.
5995

6096
The Grails team

0 commit comments

Comments
 (0)