Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Grails, chain forwards and values not getting set.  RSS feed

Lori Cook
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please help someone who has had to teach themselves how to do Grails...

I have some code that is trying to call a controller to do some work, then call another controller to do some work and then back to the original controller. I need to pass an id along the chain but after the first forward, the value becomes null. Why? And how do I do it right? The code is this:

I tried putting the id in the params ("params: [companyName: params.companyName, id: id]") when passing back to the RoomController, but it was still null. Even tried creating a new version of the id and passing it - still came through as null. I suspect (but have not tried), that the companyName getting passed get nulled too.

What am I doing wrong?

Lori <*>
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!