public abstract class PhaseBinding extends Object implements org.ocpsoft.rewrite.bind.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(javax.faces.event.PhaseId... phases)
Perform this
PhaseBinding after the given phases (Except PhaseId.RENDER_RESPONSE). |
PhaseBinding |
before(javax.faces.event.PhaseId... phases)
Perform this
PhaseBinding before the given phases (Except PhaseId.RESTORE_VIEW). |
PhaseBinding |
convertedBy(org.ocpsoft.rewrite.param.Converter<?> converter)
Convert the
Binding value using the given Converter. |
PhaseBinding |
onValidationFailure(org.ocpsoft.rewrite.config.Operation operation)
On validation failure, perform the given
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified. |
Object |
retrieve(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context) |
Object |
submit(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
Object value) |
boolean |
supportsRetrieval() |
boolean |
supportsSubmission() |
static PhaseBinding |
to(org.ocpsoft.rewrite.bind.Submission submission)
Create a
Binding to process the given Submission during the Faces life-cycle. |
PhaseBinding |
validatedBy(org.ocpsoft.rewrite.param.Validator<?> validator)
Validate the
Binding value using the given Validator. |
public static PhaseBinding to(org.ocpsoft.rewrite.bind.Submission submission)
Binding to process the given Submission during the Faces life-cycle.public PhaseBinding before(javax.faces.event.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(javax.faces.event.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(org.ocpsoft.rewrite.param.Validator<?> validator)
Binding value using the given Validator.public PhaseBinding convertedBy(org.ocpsoft.rewrite.param.Converter<?> converter)
Binding value using the given Converter.public PhaseBinding onValidationFailure(org.ocpsoft.rewrite.config.Operation operation)
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified.public Object retrieve(org.ocpsoft.rewrite.event.Rewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
retrieve in interface org.ocpsoft.rewrite.bind.Retrievalpublic Object submit(org.ocpsoft.rewrite.event.Rewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, Object value)
submit in interface org.ocpsoft.rewrite.bind.Submissionpublic boolean supportsRetrieval()
supportsRetrieval in interface org.ocpsoft.rewrite.bind.Bindingpublic boolean supportsSubmission()
supportsSubmission in interface org.ocpsoft.rewrite.bind.BindingCopyright © 2019 OCPsoft. All rights reserved.