私はgrailsを初めて使用し、ちょっと立ち往生しています。次のようなコントローラーがあります。
class MusicController {
...
def index = { redirect(action:list,params:params) }
def list = {
[songView: getSongView(), enableStateProvider: true, setLayout: true]
}
...
}
同じリストに別のオブジェクトを追加したいので、次のようになります。
def list = {
[songView: getSongView(), enableStateProvider: true, setLayout: true]
[genreView: getGenreView(), enableStateProvider: true, setLayout: true]
}
ビュー クラス (list.gsp) で、オブジェクトごとにパラメータを分離/呼び出すにはどうすればよいですか?