var OmniFaces=OmniFaces||{}; OmniFaces.Util=function(d,k){function g(a,b,c,h,d){h=h.replace(/^\s+|\s+$/g,"").split(/\s+/);for(var f=0;ff||f>=e.length)){var a=e[f],b=k.createElement("script"),c=k.head||k.documentElement;b.async=!0;b.src=a.url;b.setAttribute("crossorigin","anonymous");b.onerror=function(){a.error()};b.onload=b.onreadystatechange=function(c,d){if(d||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;if(d)b.onerror();else a.success();b=null;g(f+1)}};a.begin();c.insertBefore(b,null)}}var e=[];return{add:function(f,a,b,c){e.push({url:f, begin:d.resolveFunction(a),success:d.resolveFunction(b),error:d.resolveFunction(c)});1==e.length&&d.addOnloadListener(function(){g(0)})}}}(OmniFaces.Util,document); OmniFaces.Unload=function(d,k,g,e){function f(){for(var a=0;aa){a=b.name;var c;d.mojarra&&(c=e.form.enctype,e.form.enctype=null);e.value=null;jsf.ajax.request(e.id,g,{"omnifaces.event":"validationFailed",fileName:a});c&&(e.form.enctype=c);return!1}}return!0}}}(window,document);