再開ボタンをクリックすると、最後に訪問したページに移動します。私はIDをコントローラに渡しています。最後に訪問したページでセッションを再開する
<input type="button" value="Resume" onclick="window.location.href='/wizard/submission/resume/${submission.id}'" />
コントローラロジックは
def resume = {
def id = params.id
def test = (getDomainObjectType() as Class).get(id)
session[getSessionObjectName()] = test;
LOG.debug("resuming ${test}")
redirect(action: "wizard");
}
し、ウィザードのロジック以下の通りです以下の通りです:(今のところその限り)
nextView = (int) postProcessedValues.next;
if (nextView == null) {
redirect(action: "index");
//nextView = 0; //question is what to do here. Maybe redirect back to the index page instead...
}
ここにロジックを実装するには、私を助けて。あなたはGrailsのウェブフローのサポートを使用して調査することがありますように
他のコードが必要な場合はお知らせください... – Techie