[OmniFaces utilities] The
getImplInfo()
method returns the implementation information of currently loaded JSF implementation. E.g. "Mojarra 2.1.7-FCS".Method:
Usage:
import
org.omnifaces.util.Faces;
...
String info
= Faces.getImplInfo(); // e.g. JavaServer(TM) Faces 2.2 API 2.2.8
or,
import
static org.omnifaces.util.Faces.getImplInfo;
...
if(getImplInfo().equals("JavaServer(TM)
Faces 2.2 API 2.2.8")) {
//.. do something
}
Niciun comentariu :
Trimiteți un comentariu