public abstract class PhaseBinding extends Object implements Binding
Operation that wraps & holds a Submission until before or after a given JavaServer Faces
PhaseId. Validation and conversion of the given Submission are also deferred to within the Faces
lifecycle.| Modifier and Type | Method and Description |
|---|---|
PhaseBinding |
after(PhaseId... phases)
Perform this
PhaseBinding after the given phases (Except PhaseId.RENDER_RESPONSE). |
PhaseBinding |
before(PhaseId... phases)
Perform this
PhaseBinding before the given phases (Except PhaseId.RESTORE_VIEW). |
PhaseBinding |
convertedBy(Converter<?> converter)
|
PhaseBinding |
onValidationFailure(Operation operation)
On validation failure, perform the given
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified. |
Object |
retrieve(Rewrite event,
EvaluationContext context) |
Object |
submit(Rewrite event,
EvaluationContext context,
Object value) |
boolean |
supportsRetrieval() |
boolean |
supportsSubmission() |
static PhaseBinding |
to(Submission submission)
Create a
Binding to process the given Submission during the Faces life-cycle. |
PhaseBinding |
validatedBy(Validator<?> validator)
|
public static PhaseBinding to(Submission submission)
Binding to process the given Submission during the Faces life-cycle.public PhaseBinding before(PhaseId... phases)
PhaseBinding before the given phases (Except PhaseId.RESTORE_VIEW). The deferred
Submission will be performed once for each PhaseId provided.public PhaseBinding after(PhaseId... phases)
PhaseBinding after the given phases (Except PhaseId.RENDER_RESPONSE). The deferred
Submission will be performed once for each PhaseId provided.public PhaseBinding validatedBy(Validator<?> validator)
public PhaseBinding convertedBy(Converter<?> converter)
public PhaseBinding onValidationFailure(Operation operation)
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified.public Object retrieve(Rewrite event, EvaluationContext context)
public Object submit(Rewrite event, EvaluationContext context, Object value)
submit in interface Submissionpublic boolean supportsRetrieval()
supportsRetrieval in interface Bindingpublic boolean supportsSubmission()
supportsSubmission in interface BindingCopyright © 2015 OCPsoft. All Rights Reserved.