Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

[OmniFaces utilities 2.3] Load given script resource on complete of the current ajax response


[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");

API GH


This post first appeared on OmniFaces & JSF Fans, please read the originial post: here

Share the post

[OmniFaces utilities 2.3] Load given script resource on complete of the current ajax response

×

Subscribe to Omnifaces & Jsf Fans

Get updates delivered right to your inbox!

Thank you for your subscription

×