org.apache.beehive.netui.pageflow.annotations
Annotation Type Jpf.SimpleAction


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public static @interface Jpf.SimpleAction


Required Element Summary
 String name
          name (required)
 
Optional Element Summary
 Jpf.Catch[] catches
          exception catches (optional )
 Jpf.ConditionalForward[] conditionalForwards
           
 boolean externalRedirect
           
 boolean loginRequired
          is login required to access this action (optional )
 Jpf.NavigateTo navigateTo
          A symbolic name for the page/action to which to navigate.
 String outputFormBean
           
 Class outputFormBeanType
           
 String path
          The forward path.
 boolean readOnly
          is this action read-only, i.e., is it guaranteed not to modify member state (optional )
 boolean redirect
           
 boolean restoreQueryString
          Tells whether the original query string will be restored on a rerun of a previous action.
 String returnAction
          The action to be invoked on the calling page flow.
 String[] rolesAllowed
          roles allowed to access this action (optional )
 String useFormBean
          page flow-scoped form; references a member variable (bean) in the page flow (optional )
 Jpf.ValidatableProperty[] validatableProperties
          field-level validation rules tied to the action (optional )
 Jpf.Forward validationErrorForward
          forward used when validation fails
 

Element Detail

name

public abstract String name
name (required)

conditionalForwards

public abstract Jpf.ConditionalForward[] conditionalForwards
Default:
{}

useFormBean

public abstract String useFormBean
page flow-scoped form; references a member variable (bean) in the page flow (optional )

Default:
""

readOnly

public abstract boolean readOnly
is this action read-only, i.e., is it guaranteed not to modify member state (optional )

Default:
false

rolesAllowed

public abstract String[] rolesAllowed
roles allowed to access this action (optional )

Default:
{}

loginRequired

public abstract boolean loginRequired
is login required to access this action (optional )

Default:
false

catches

public abstract Jpf.Catch[] catches
exception catches (optional )

Default:
{}

validatableProperties

public abstract Jpf.ValidatableProperty[] validatableProperties
field-level validation rules tied to the action (optional )

Default:
{}

validationErrorForward

public abstract Jpf.Forward validationErrorForward
forward used when validation fails

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.Forward(name="")

path

public abstract String path
The forward path. Mutually-exclusive with returnAction and navigateTo.

Default:
""

returnAction

public abstract String returnAction
The action to be invoked on the calling page flow. Mutually-exclusive with path and navigateTo, and only valid in a nested page flow (nested on the Controller annotation must be true).

Default:
""

navigateTo

public abstract Jpf.NavigateTo navigateTo
A symbolic name for the page/action to which to navigate. Mutually-exclusive with returnAction and path.

Default:
currentPage

restoreQueryString

public abstract boolean restoreQueryString
Tells whether the original query string will be restored on a rerun of a previous action. Only valid when navigateTo is NavigateTo.previousAction.

Returns:
boolean
Default:
false

outputFormBeanType

public abstract Class outputFormBeanType
Default:
java.lang.Void.class

outputFormBean

public abstract String outputFormBean
Default:
""

redirect

public abstract boolean redirect
Default:
false

externalRedirect

public abstract boolean externalRedirect
Default:
false