[OmniFaces utilities] The
getViewId()
method returns the ID of the current view root, or
null
if there is no view.
Method:
import
org.omnifaces.util.Faces;
...
String
viewid = Faces.getViewId(); //e.g. /index.xhtml
or,
import
static org.omnifaces.util.Faces.getViewId;
...
String
viewid = getViewId(); //e.g. /index.xhtml
Niciun comentariu:
Trimiteți un comentariu