From: <jm...@us...> - 2005-08-04 07:40:23
|
Update of /cvsroot/struts/dialogs/src/net/jspcontrols/dialogs/actions/wizard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19672/src/net/jspcontrols/dialogs/actions/wizard Modified Files: WizardAction.java Log Message: Index: WizardAction.java =================================================================== RCS file: /cvsroot/struts/dialogs/src/net/jspcontrols/dialogs/actions/wizard/WizardAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WizardAction.java 11 Jul 2005 07:13:12 -0000 1.1 --- WizardAction.java 4 Aug 2005 07:39:44 -0000 1.2 *************** *** 45,63 **** /** - * Returns the initialization key or initialization prefix. - * Must start with the same prefix as dialog buttons. For example, - * if dialog buttons start with "DIALOG-EVENT", then "DIALOG-EVENT-INIT" - * is a good name for initilization key, while "DIALOG-INIT" is not. - */ - protected String getInitKey() { - return "DIALOG-EVENT-INIT"; - } - - /** * Maps submit button names to handler methods; also maps initialization * keys to initialization methods. Events, external to CRUDAction, * are considered initializing events, and therefore must start with * initialization prefix. For example, if initialization prefix ! * starts with "DIALOG-EVENT-INIT", then "DIALOG-EVENT-INIT-CREATE" * is a good key for "Create new business object" event, while * "DIALOG-EVENT-CREATE" is not. --- 45,53 ---- /** * Maps submit button names to handler methods; also maps initialization * keys to initialization methods. Events, external to CRUDAction, * are considered initializing events, and therefore must start with * initialization prefix. For example, if initialization prefix ! * starts with "DIALOG-EVENT", then "DIALOG-EVENT-CREATE" * is a good key for "Create new business object" event, while * "DIALOG-EVENT-CREATE" is not. *************** *** 72,80 **** // Cancel viewing or editing of current item ! map.put("DIALOG-EVENT-CANCEL", "onCancel"); // Persist changes of current item ! map.put("DIALOG-EVENT-BACK", "onBack"); // Close preview mode of existing item ! map.put("DIALOG-EVENT-NEXT", "onNext"); return map; --- 62,70 ---- // Cancel viewing or editing of current item ! map.put(getInitKey() + "-CANCEL", "onCancel"); // Persist changes of current item ! map.put(getInitKey() + "-BACK", "onBack"); // Close preview mode of existing item ! map.put(getInitKey() + "-NEXT", "onNext"); return map; *************** *** 163,166 **** --- 153,158 ---- HttpServletRequest request, HttpServletResponse response) throws Exception { + // Make wizard pages non-cachable + setNoCache(response); // CRUDAction works with form beans, implementing ICRUDForm |