public class PhaseBinding extends HttpOperation implements Binding, CompositeOperation
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)
|
List<Operation> |
getOperations() |
PhaseBinding |
onValidationFailure(Operation operation)
On validation failure, perform the given
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified. |
void |
performHttp(HttpServletRewrite event,
EvaluationContext context) |
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)
|
performandpublic 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 void performHttp(HttpServletRewrite event, EvaluationContext context)
performHttp in class HttpOperationpublic 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 Bindingpublic List<Operation> getOperations()
getOperations in interface CompositeOperationCopyright © 2013 OCPsoft. All Rights Reserved.