TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
247 stars 102 forks source link

DataTables CDN Alternative when developing locally #1132

Closed geisonrodrigo closed 4 years ago

geisonrodrigo commented 4 years ago

I'm getting trouble when trying to use DataTables inside a maven project, running on an intranet (locally, without internet access). I found explicit references to https://cdn.datatables.net and https://cdnjs.cloudflare.com. Is there a way to disable those references and point to a local cdn repository? On a previous version of this project I was not using maven, so I was able to download BootsFaces source code and recompile it, replacing those remote references...

stephanrauh commented 4 years ago

Of course BootsFaces supports your use case. Basically, all you have to do is to download the datatables.* files to your project. If BootsFaces finds an include of such a file, it stops trying to download the datatables.* files from the CDN.

I've also documented this in the showcase (or at least, I've tried to do so).

stephanrauh commented 4 years ago

Does my comment help you? If so, just add a "+1" emoji, so I know I can close the ticket. If not, don't hesitate to ask again!

geisonrodrigo commented 4 years ago

Of course BootsFaces supports your use case. Basically, all you have to do is to download the datatables.* files to your project. If BootsFaces finds an include of such a file, it stops trying to download the datatables.* files from the CDN.

I've also documented this in the showcase (or at least, I've tried to do so).

Dude, it worked like a charm! I've tried to read the documentation from showcase, but I don't know why it's not working for me...

erro_bootsfaces_showcase

geisonrodrigo commented 4 years ago

Does my comment help you? If so, just add a "+1" emoji, so I know I can close the ticket. If not, don't hesitate to ask again!

Thanks a lot!

stephanrauh commented 4 years ago

I'm afraid the showcase has crashed again. We're trying to find the root cause of the crashes, so we didn't simply restart it. It seems to be something difficult, something wrong with the setup of the virtual machine, so it's not a BootsFaces problem.

Until we've fixed the showcase, you can use the secondary showcase: https://showcase.bootsfaces.pecer.de/