-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlockUI always enabled just by importing the library #790
Comments
I guess it's easy to implement the check of the web.xml setting. If I'm not mistaken, you've already done similar things. If you want to submit the PR yourself, go ahead! |
I guess just adding a EL expression to the JS file should work, no?
Something like:
if($.BlockUI != null && #{blockUIEnabled}) {
// ...
}
The resource mechanism should interpret it. Would that be enough? I'l take
a look and try to provide a PR when I find some time.
…On Mon, May 22, 2017 at 10:50 PM, Stephan Rauh ***@***.***> wrote:
I guess it's easy to implement the check of the web.xml setting. If I'm
not mistaken, you've already done similar things. If you want to submit the
PR yourself, go ahead!
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#790 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACAucHI2A47CLU6YVr8aqYlslbMvqmVFks5r8fUTgaJpZM4NiYWO>
.
|
slightly related: i was doing pagespeed insights https://developers.google.com/speed/pagespeed/insights/ the other day and it said that the BlockUI javascript file was not minified. does BootsFaces use the minified version? |
… per-request basis, formatted the source code and added a navigation sidebar.
Actually, there's no official minified version of BlockUI. I minified it manually. |
We've implemented this feature long ago. I've just added the documentation, so we can close the ticket. |
Manually importing the BlockUI library enables it for AJAX requests even with it being disabled on the
web.xml
. BootsFaces AJAX API checks for the presence of the$.blockUI
and if it's present and not null, it automatically blocks and unblocks the screen:BootsFaces-OSP/gradleResources/staticResources/js/bsf.js
Line 39 in 5bdbf22
Since BlockUI cannot be disabled on a per request basis (like PrimeFaces does with the
global
attribute), I imported the library and disabled it onweb.xml
. But BootsFaces doesn't do the check on the client side.I propose two changes here:
The workaround I've used for now is to rename the variables on my imported JS file, downloaded from the author's website.
The text was updated successfully, but these errors were encountered: