|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
Grails 0.5.5 ReleasedHi all,
The Grails development team has reached another milestone and is pleased to announce the release of version 0.5.5 of the Grails web-application development framework. You can download it from here: http://grails.org/Download Full release notes here: http://grails.org/0.5.5+Release+Notes Thank you to all the team members, patch contributors and users. A lot of hard work has gone into this release - we hope you enjoy using this latest installment of the Grails adventure. Enjoy! -- Graeme Rocher Grails Project Lead http://grails.org --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Grails 0.5.5 ReleasedExcellent! I look forward to trying it out next week.
Thanks for all the hard work.
|
|
|
Re: Grails 0.5.5 ReleasedHi Graeme,
I don't know how you guys pump out releases like you do - amazing :) I have some little problems (I think they are little!) I ran grails clean and grails upgrade on two of my projects. I have some errors I don't understand. Message: No such property: errors for class: RoleController Caused by: groovy.lang.MissingPropertyException: No such property: errors for class: RoleController Class: ControllersGrailsPlugin At Line: [363] The above happens with any controller that extends my SecureBaseController. Do I now have to manually add an errors instance variable of some type? Message: Cannot get property: pluginContextPath on null object Caused by: Cannot get property: pluginContextPath on null object Class: JavascriptTagLib At Line: [62] I can't view the default list of controllers in index.gsp. If I remove this from main.gsp, things are ok: <g:javascript library="application" /> The source is def requestPluginContext = request [CONTROLLER].pluginContextPath So I could compare default generated code, I created a test project, but I get the same error as above. Thanks -Ed On 15-Jun-07, at 9:15 AM, Graeme Rocher wrote: > Hi all, > > The Grails development team has reached another milestone and is > pleased to announce the release of version 0.5.5 of the Grails > web-application development framework. > > You can download it from here: http://grails.org/Download > > Full release notes here: http://grails.org/0.5.5+Release+Notes > > Thank you to all the team members, patch contributors and users. A lot > of hard work has gone into this release - we hope you enjoy using this > latest installment of the Grails adventure. > > Enjoy! > > -- > Graeme Rocher > Grails Project Lead > http://grails.org > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Grails 0.5.5 ReleasedOn Friday 15 June 2007 11:21:40 am Edward Povazan wrote:
> Message: Cannot get property: pluginContextPath on null object > Caused by: Cannot get property: pluginContextPath on null object > Class: JavascriptTagLib > At Line: [62] > I get this also, when I hit the root context of my app, i.e.: http://localhost:8080/MyApp If I go to http://localhost:8080/MyApp/user/login, or any other specific path, things work just fine - that exception is limited just to the root path. d --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Grails 0.5.5 ReleasedOn 15 Jun 2007, at 19:21, Edward Povazan wrote: > Hi Graeme, > > I don't know how you guys pump out releases like you do - amazing :) > > I have some little problems (I think they are little!) > I ran grails clean and grails upgrade on two of my projects. I have > some errors I don't understand. > Message: No such property: errors for class: RoleController > Caused by: groovy.lang.MissingPropertyException: No such property: > errors for class: RoleController > Class: ControllersGrailsPlugin > At Line: [363] > > The above happens with any controller that extends my > SecureBaseController. Do I now have to manually add an errors > instance variable of some type? > Hmm pass. Not seeing that here. > Message: Cannot get property: pluginContextPath on null object > Caused by: Cannot get property: pluginContextPath on null object > Class: JavascriptTagLib > At Line: [62] > > I can't view the default list of controllers in index.gsp. If I > remove this from main.gsp, things are ok: > <g:javascript library="application" /> > The source is def requestPluginContext = request > [CONTROLLER].pluginContextPath > Please check that your plugins/core/grails-app/taglib/ JavascriptTagLib is the same as the one under GRAILS_HOME. If not, you will need to copy them over. There is a warning in the grails upgrade process about this -if- your code is in SVN/CVS. > So I could compare default generated code, I created a test > project, but I get the same error as above. Odd :( Marc --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Grails 0.5.5 ReleasedI get the same error.
|
|
|
Re: Grails 0.5.5 ReleasedSame here
|
|
|
Re: Grails 0.5.5 ReleasedOn 6/15/07, Marc Palmer <marc@...> wrote:
> Please check that your plugins/core/grails-app/taglib/ > JavascriptTagLib is the same as the one under GRAILS_HOME. If not, > you will need to copy them over. There is a warning in the grails > upgrade process about this -if- your code is in SVN/CVS. I get the same error. Both files are indeed the same. On said taglib, on the Javascript closure, it reads: setUpRequestAttributes(); def requestPluginContext = request[CONTROLLER].pluginContextPath That request[CONTROLLER] is returning null. To get the exception to go away, replace with: setUpRequestAttributes(); def requestPluginContext = request[CONTROLLER]?.pluginContextPath Ricardo J. Méndez http://ricardo.strangevistas.net/ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Grails 0.5.5 ReleasedHi Ricardo,
looks like a bug introduced by a recent change to the pluginContextPath. I'll raise an issue and get that fix checked in asap. cheers Lee On 16/06/07,
Ricardo J. Méndez <mendezster@...> wrote: On 6/15/07, Marc Palmer <marc@...> wrote: |
|
|
Re: Grails 0.5.5 ReleasedArgh, completely flumuxed as how I didn't pick this up in my tests,
didn't happen for me (same as Marc)... teach us to do an RC2 next time :-P On to 0.5.5.1 Cheers On 6/16/07, Lee Butts <leebutts@...> wrote: > Hi Ricardo, > > looks like a bug introduced by a recent change to the pluginContextPath. > I'll raise an issue and get that fix checked in asap. > > cheers > > Lee > > > On 16/06/07, Ricardo J. Méndez <mendezster@...> wrote: > > On 6/15/07, Marc Palmer <marc@...> wrote: > > > > > Please check that your plugins/core/grails-app/taglib/ > > > JavascriptTagLib is the same as the one under GRAILS_HOME. If not, > > > you will need to copy them over. There is a warning in the grails > > > upgrade process about this -if- your code is in SVN/CVS. > > > > I get the same error. Both files are indeed the same. On said taglib, > > on the Javascript closure, it reads: > > > > setUpRequestAttributes(); > > def requestPluginContext = > request[CONTROLLER].pluginContextPath > > > > That request[CONTROLLER] is returning null. To get the exception to > > go away, replace with: > > > > setUpRequestAttributes(); > > def requestPluginContext = > request[CONTROLLER]?.pluginContextPath > > > > > > Ricardo J. Méndez > > http://ricardo.strangevistas.net/ > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > -- Graeme Rocher Grails Project Lead http://grails.org --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Grails 0.5.5 Releasedhi,
one of the new features of this release is "Dependency Injection for domain classes" I don't know much about spring, what is this features for? How can I make use of it? Thanks james
|
|
|
Re: Grails 0.5.5 ReleasedYou declare a service on your domain class just like you would on your
controller. The usefulness of it is still debated. But in sohrt it enables richer domain models. So to give you an example of its usefulness you could do something like this: BankAccount { CurrencyConversionService currencyConversionService BigDecimal normalizedAmount String accountType void creditAmount(amount, currency) { normalizedAmount += currencyConversionService.normalize(amount, currency) } void debitAmount(amount,currency) { normalizedAmount -= currencyConversionService.normalize(amount, currency) } BigDecimal getBalance() { getBalance(Currency.CHF) } BigDecimal getBalance(currency) { currencyConversionService.convert (normalizedAmount, Currency.NRM, currency) } } Of course without this feature you would be able to do the same thing but it will all have to be outside of your domain class. Just like DAO without GORM is all outside the class (finders, save, delete ... etc.) which usually leads to domain classes being almost naked (or anemic is another name for that). They have no functionality. Since GORM brings a lot of functionality into the classes it only makes sense to go the full length and bring services in, hence is the feature. HTH, Alex. On 6/17/07, james_027 <james_027@...> wrote: > > hi, > > one of the new features of this release is "Dependency Injection for domain > classes" > > I don't know much about spring, what is this features for? How can I make > use of it? > > Thanks > james > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Grails 0.5.5 ReleasedHi alex,
Thanks a lot, that's very well explained :) cheers, james
|
|
|
Re: Grails 0.5.5 ReleasedHi Graeme,
I've been using grails-0.5.5-snapshot for the last 3 weeks. Mainly because of the improvements to unit/integration testing. In 0.5.5 however, it looks like the way Controllers can be tested has either changed, or there is a new bug ;-) I am getting this error: No such property: delegate for class: org.springframework.mock.web.MockHttpServletResponse when getting content from the response: def wc = new WordController() ... wc.response.delegate.contentAsString The docs on testing controllers (http://grails.org/Testing+Controllers) have not changed. Many thanks, Marcin
|
|
|
Re: Grails 0.5.5 ReleasedRemove the delegate part
Cheers On 6/17/07, Marcin Domanski <marcin.doman@...> wrote: > > Hi Graeme, > > I've been using grails-0.5.5-snapshot for the last 3 weeks. Mainly because > of the improvements to unit/integration testing. In 0.5.5 however, it looks > like the way Controllers can be tested has either changed, or there is a new > bug ;-) > > I am getting this error: > > No such property: delegate for class: > org.springframework.mock.web.MockHttpServletResponse > > when getting content from the response: > > def wc = new WordController() > ... > wc.response.delegate.contentAsString > > > The docs on testing controllers (http://grails.org/Testing+Controllers) have > not changed. > > Many thanks, > Marcin > > > > graemer wrote: > > > > Hi all, > > > > The Grails development team has reached another milestone and is > > pleased to announce the release of version 0.5.5 of the Grails > > web-application development framework. > > > > You can download it from here: http://grails.org/Download > > > > Full release notes here: http://grails.org/0.5.5+Release+Notes > > > > Thank you to all the team members, patch contributors and users. A lot > > of hard work has gone into this release - we hope you enjoy using this > > latest installment of the Grails adventure. > > > > Enjoy! > > > > -- > > Graeme Rocher > > Grails Project Lead > > http://grails.org > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > -- > View this message in context: http://www.nabble.com/Grails-0.5.5-Released-tf3928954.html#a11162420 > Sent from the grails - user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- Graeme Rocher Grails Project Lead http://grails.org --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |