Using very simple example, based on documentation, we have created controller:
class ChainTestController {
def one() {
chain action: 'two', model: [name: 'Tony', town: 'Birmingham']
}
def two() {
[name: 'Anthony', country: 'England']
}
}
and GSP
A ${name} B ${town} C ${country}
The result of opening
http://localhost:8080/chainTest/two
shows:
A Anthony B C England
instead of
A Anthony B Birmingham C England
If flash.chainModel is used in GSP, variable is available there.
Project with controller and view to reproduce this is under https://github.com/droggo/ChainError