[OmniFaces utilities] The
load()
method loads the given script resource on complete of the current ajax response. Basically, it loads the script resource as String
and then delegates it to #oncomplete(String...)
.Method:
Usage:
Let's suppose that we have a script file named foo.js in the default library. Now, programmatically we can load this file at the end of the current AJAX request (at on complete) as below:
import
org.omnifaces.util.Ajax;
...
Ajax.load("default","foo.js");
Niciun comentariu :
Trimiteți un comentariu