View Full Version : So can AbstractWizardFormController has one referenceData for each page?urgent...
wallance
Apr 21st, 2006, 11:36 AM
So can AbstractWizardFormController has one referenceData for each page?And how? I am totally new to AbstractWizardFormController, any advice is appreciated.
opsb
Apr 21st, 2006, 12:06 PM
You need to implement
Map referenceData(HttpServletRequest request, int page)
or
Map referenceData(HttpServletRequest request, Object command, Errors errors, int page)
Do something like
Map referenceData(HttpServletRequest request, int page) {
Map refData = new HashMap();
switch (page) {
case 1: refData.put("title","PageOne"); break;
case 2: refData.put("title", "PageTwo"); break;
}
return refData;
}
wallance
Apr 21st, 2006, 09:11 PM
hi opsb,
Thank you for you quick reply. I am trying;)
wallance
Apr 21st, 2006, 11:27 PM
now, I have another question. I have two button on one page called "Query" and "Add", together with one user list. When "Query" was clicked, the user list should be refreshed according to the query condition. When "Add" was clicked, the user list should be posted to my controller, then the selected user(s) will be added to group, and then jump to another wizard page. How can I handle the query form and the userList form in the same wizard page?
Please help me. Thank you in advance.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.