问题
I am using prime faces jar in my web application. The prime faces jar contain utility.js
file.
I need to set flash parameter AllowScriptAccess
value to 'sameDomain'
instead 'always'
in utility.js
file. I am not interested to edit jar file manually.
It is challenging one. Anybody have idea about this let me know pls.
回答1:
Try to put a modified copy of that utility.js file in your resources folder an load it using the <f:facet name="last">
, that way your copy of the file should be loaded in the end and override the js file from the jar
<f:facet name="last">
<!-- load css, js or others -->
</f:facet>
Take a look at this Resource ordering in PrimeFaces
来源:https://stackoverflow.com/questions/14017933/set-flash-parameter-allowscriptaccess-to-samedomain-instead-always