
net.sourceforge.stripes.action.Wizard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stripes Show documentation
Show all versions of stripes Show documentation
Stripes web framework jar, including tag library.
/* Copyright 2005-2006 Tim Fennell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.sourceforge.stripes.action;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Documented;
/**
* Annotation that marks an ActionBean as representing a wizard user interface (i.e. one logical
* form or operation spread across several pages/request cycles). ActionBeans that are marked
* as Wizards are treated differently in the following ways:
*
*
* - Data from previous request cycles is maintained automatically through hidden fields
* - Required field validation is performed only on those fields present on the page
*
*
* @author Tim Fennell
* @since Stripes 1.2
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Wizard {
/**
* An optional list of events which mark the start of the wizard flow. An event is a
* start event if it is executed before the first page in the wizard flow is
* rendered - not if it is the result of a form that targets the wizard action.
* The list is used by Stripes to disable security validation of the 'fields present'
* field in the request, as it is not necessary for start events in a wizard flow, and
* can cause problems.
*/
String[] startEvents() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy