[OmniFaces utilities] The
getRichFacesResourceLibraryResources()
method returns an ordered set of all JSF resource identifiers for the given RichFaces resource library resources.Method:
For understanding the OmniFaces 2.3 Reflection#findMethod() you need to check out the here.
Usage:
import
org.omnifaces.resourcehandler.ResourceIdentifier;
import
org.omnifaces.util.Hacks;
import
java.util.Set;
...
// e.g. [javax.faces:jsf.js,
org.richfaces:jquery.js, org.richfaces:richfaces.js,
org.richfaces:richfaces-queue.js]
ResourceIdentifier
ri = new ResourceIdentifier("org.richfaces",
"ajax.reslib");
Set<ResourceIdentifier> ris
= Hacks.getRichFacesResourceLibraryResources(ri);
The
OmniFaces org.omnifaces.resourcehandler.ResourceIdentifier
is a convenience class to represent a resource identifier (maps resource name and library).
Niciun comentariu :
Trimiteți un comentariu