[OmniFaces utilities] The
isScriptResourceRendered() method returns whether the given script resource is rendered.Method:
See also: Set the given script/stylesheet resource asrendered
FacesContext
context = ...;
boolean isScriptRendered
= Hacks.isScriptResourceRendered(context, new ResourceIdentifier(script_component))
if(isScriptRendered){
// is
} else {
//is
not
}
Note The OmniFaces org.omnifaces.resourcehandler.ResourceIdentifier is a convenience class to represent a resource identifier (maps resource name and library).






Arrays
Converters
JSF 2 Tutorials at www.mkyong.com
JavaServer Faces (JSF) Tutorial 


















Niciun comentariu :
Trimiteți un comentariu