[OmniFaces utilities] The
renderResponse()
method signals JSF that, as soon as the current phase of the lifecycle has been completed, control should be passed to the Render Response phase, bypassing any phases that have not been executed yet.Method:
Usage:
Typically,
use cases of the Faces#renderResponse() consist in the following
scenario: at the end of the current phase, JSF should bypass the rest of phases
and go directly into the Render Response phase. For example, suppose that the
current phase is Process Validations and, in case that validation is a success,
you want to bypass Update Model Values and Invoke Application phase, and go
directly in Render Response phase. Then, you simply do this:
import
org.omnifaces.util.Faces;
...
// (e.g. at
the end of Process Validations phase invoke)
Faces.renderResponse();
Niciun comentariu :
Trimiteți un comentariu