marți, 21 aprilie 2015

[OmniFaces utilities (2.0)] Check if JUEL (implementation of the Unified Expression Language (EL)) is available


REMOVED IN OmniFaces 2.1 Final
[OmniFaces utilities] The isJUELUsed() method returns true if JUEL (implementation of the Unified Expression Language (EL)) is available.

Method:
Usage:

import org.omnifaces.util.Hacks;
...
boolean isJUELAround = Hacks.isJUELUsed();
if(isJUELAround) {
   // is
} else {
   // is not
}

Niciun comentariu:

Trimiteți un comentariu