[OmniFaces utilities] The
isMyFacesUsed()
method returns true if MyFaces is used. That is, when the FacesContext
instance is from the MyFaces specific package.Method:
Usage:
boolean
isMyFacesAround = Hacks.isMyFacesUsed();
if(isMyFacesAround){
// is
} else {
//is
not
}
Niciun comentariu :
Trimiteți un comentariu