1

I seem to have reached a conundrum in integrating this third party Bootstrap theme within bootsfaces. Currently what I'm trying to do is include the css/js files within the xhtml files, but that doesn't seem to display any styling or show any references to the css files when inspecting the page. Will I need to build bootsfaces from source? Any help would be greatly appreciated

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
landocalrissian
  • 163
  • 2
  • 11
  • Your question is overly vague. Please describe the technical problem in detail. Do you mean to say that when you use a `` or `` referencing that theme CSS file, that you don't see it to show up in the generated HTML output when inspecting it in the webbrowser? – BalusC Dec 03 '15 at 22:59
  • Yes, I do not see references to the theme css files when I use `` or `` – landocalrissian Dec 03 '15 at 23:06
  • Apparently your way of authoring the JSF/Facelets template is wrong. E.g. you placed them *outside* a `` or `` instead of inside which causes them to be plain ignored. Hard to answer without seeing your concrete problem in [MCVE](http://stackoverflow.com/tags/jsf/info) flavor. Perhaps this is already applicable as duplicate: http://stackoverflow.com/q/4792862 and/or http://stackoverflow.com/q/8367421. At least, working through a basic JSF/Facelets tutorial wouldn't be a bad idea after all. It must enable you to explain and even demonstrate the problem more clearly. – BalusC Dec 03 '15 at 23:09
  • Would you mind to add some source code to your question? This would help us to locate the bug. Thanks in advance! – Stephan Rauh Dec 04 '15 at 07:21
  • I was able to figure it out, I had put the css and js inputs in the wrong area – landocalrissian Dec 04 '15 at 20:46

1 Answers1

0

Starting with BootsFaces 0.8.0, we (the BootsFaces team) have added full-blown theme support. This include the default theme, 16 Bootswatch themes which are included in the library, and arbitrary custom themes. Read the details on our showcase.

However, in earlier versions (i.e. BootsFaces 0.7.0 and below) it was a bit more difficult to get custom or third-party themes up and running. Therefore, I recommend updating to BootsFaces 0.8.x, if you're still using an older version.

Update Dec 6, 2015: Forget about my former answer. BootsFaces theming works a bit different than I thought. We've changed it in the soon-to-come BootsFaces 0.8.0, anyways. I'll update my answer as soon as I'll have worked out the details.

The default Bootstrap theme of BootsFaces is a simple file (bsf.css). If you don't activate it in the web.xml, BootsFaces runs without any theme. So your approach should work: simply add the CSS file to your XHTML page, and you're good to go. You don't have to compile BootsFaces from source.

Stephan Rauh
  • 3,069
  • 2
  • 18
  • 37