•May 22, 2009 •
Leave a Comment
Another big chunk of time wasted on something broken (well, at least it is documented)…
I need to use g:link tag and will be sending parameters back to controller. The problem is, Grails kept saying there is something illegal about the variables I used in the parameter department. Until I dig out the reference guide, I found somewhere says:
${foo} expansions will NOT work in the params parameter (although they will work in the id parameter).
Why so? link to the solution.
Absolutely a big surprise from a beginner. Well…
Posted in Grails, problem and solution
Tags: general, Grails
•May 21, 2009 •
Leave a Comment
Ok, I must be stupid enough to expect a nicely formatted String returned from <g:datePicker>…
It doesn’t. I got some kind of ’struct’ type instead. Again, digging Grails tag library didn’t help much. The following link suggested how to read the value from date picker in the controller:
- params["foobar_year"] storing year
- params["foobar_month"] storing month
- params["foobar_day"] storing day
Here you go —note:
- foobar is the name of your datePicker object from the submitted form.
- must be encoded in double quote
Posted in Grails, problem and solution
Tags: general, Grails
•May 21, 2009 •
1 Comment
in one place… period.
I worked in software industry so I know this is pretty much a norm – lack of good document. When I want to use the Grails mail plugin, the document says to configure it this way
grails {
mail {
host = “smtp.gmail.com”
way wrong! I kept trying different settings until I came across some info that used a different value for the top domain. It should have been:
smtp {
mail {
host = “smtp.gmail.com”
#@!#$*(\ sigh ... couldn't complain enough...
Posted in Grails, problem and solution
•May 21, 2009 •
Leave a Comment
I decided to write something about Grails. It is fun to work with something so simple yet so difficult to get good information from Internet. No luck Googling from time to time, my problems are not always solved easily without a great imagination.
So here I go, as I learned and solved the problem I encountered, I tried to blog these problems and solutions (if there is one)…
Posted in Software Development
Tags: general, Grails