org.jboss.seam.annotations
Annotation Type IfInvalid


Deprecated. use or

@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface IfInvalid

Specifies that the object receiving an action method invocation should be validated before the call and, if in an invalid state, the call will be aborted and result in the specified outcome. The array of InvalidValues will be bound to the request context with the specified name.

Author:
Gavin King

Required Element Summary
 String outcome
          Deprecated. The JSF outcome, in the case that the reciever is in an invalid state.
 
Optional Element Summary
 String persistenceContext
          Deprecated. The name of a Seam-managed persistence context to use for refreshing entities when contstraints are violated.
 boolean refreshEntities
          Deprecated. Should we refresh any entity instance that violates its constraints?
 

Element Detail

outcome

public abstract String outcome
Deprecated. 
The JSF outcome, in the case that the reciever is in an invalid state.

refreshEntities

public abstract boolean refreshEntities
Deprecated. 
Should we refresh any entity instance that violates its constraints?

Default:
false

persistenceContext

public abstract String persistenceContext
Deprecated. 
The name of a Seam-managed persistence context to use for refreshing entities when contstraints are violated.

Default:
"entityManager"