Commits

matthew_payne  committed d6a6785

added cancel interceptor to create definition

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@24469f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits 19ac7cd

Comments (0)

Files changed (1)

File webapp/config/resources/xwork.xml

 	
 	<package name="default" extends="webwork-default">
 		<interceptors>
-			<interceptor class="org.quartz.ui.web.action.interceptors.SchedulerCheckInterceptor" name="schedulerCheck">
+			<interceptor name="schedulerCheck" class="org.quartz.ui.web.action.interceptors.SchedulerCheckInterceptor" >
 				<param name="failResult">scheduler</param>
 			</interceptor>
 			
+			<interceptor name="cancel" class="org.quartz.ui.web.action.interceptors.SkipInterceptor">
+				<param name="skipKey">cancel</param>
+				<param name="skipResultName">cancel</param>
+			</interceptor>
+			
 			<interceptor-stack name="defaultComponentStack">
 				<interceptor-ref name="defaultStack"/>
 				<interceptor-ref name="validation"/>
 	<package name="definition" extends="default" namespace="/definition">
 
 		<action name="add" class="org.quartz.ui.web.action.definitions.DefinitionCrud">
+			<interceptor-ref name="cancel"/>
 			<interceptor-ref name="validationWorkflowStack"/>
+			
 			<result name="input" type="velocity">/jobs/definition/edit.vm</result>
-			<result name="success" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="success" type="chain">list</result>
 			<result name="error" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="cancel" type="redirect">list.action</result>
 		</action>
 
 		<action name="view" class="org.quartz.ui.web.action.definitions.Load">
 		</action>
 
 		<action name="list" class="org.quartz.ui.web.action.definitions.Load" method="list">
+			<interceptor-ref name="defaultStack"/>
+			<interceptor-ref name="chain"/>
 			<result name="success" type="velocity">/jobs/definition/definitions.vm</result>
 		</action>