joi, 19 martie 2015

[OmniFaces utilities (2.0)] Get the HTTP servlet request


[OmniFaces utilities] The getRequest() method returns the HTTP servlet request.

Method:
Usage:

import org.omnifaces.util.Faces;
...
HttpServletRequest request = Faces.getRequest();
// do something with 'request'

Note Whenever you absolutely need this method to perform a general task, you might want to consider to submit a feature request to OmniFaces in order to add a new utility method which performs exactly this general task.

Niciun comentariu:

Trimiteți un comentariu