BootsFaces v0.8.0 - Bootswatch Themes support and new Components release
_Bootswatch Themes support and new Components release_
Our Team is really proud to release this new version of BootsFaces!
It's been quite a while since the last release but we've been busy adding many cool and exciting features and growing this project to a more mature status, since we are approaching the 1.0 version mark.
We hope you will appreciate all the improvements and additions that we made:
New components:
<b:switch />
<b:image />
<b:carousel />
<b:inputTextarea />
Themes:
We introduced support for Bootswatch Themes, for those wanting to use the build system to build a version with a Bootswatch Theme instead of plain Bootstrap.
Improvements:
- We've converted the build system to Gradle, making it more simple to install the source code version of the project. There's also a Maven build, which is even more simple, but relies on Gradle to build the resource files (CSS and JS files). Have a look to BUILD-GRADLE.txt and BUILD-MAVEN.txt respectively for details.
- We've experimented with Grunt to concatenate and minify the CSS sources. That didn't work reliably enough, so we've dropped Grunt again.
- Unified and improved AJAX for b:commandButton, b:selectBooleanCheckbox, b:selectOneMenu, b:inputText, b:icon, b:iconAwesome, b:image, b:carousel, b:tabView, b:tab (to be continued).
- The unified AJAX engine now supports both partial processing and partial updates.
- BootsFaces AJAX offers limited support for
<prime:ajax />
. - The asterik of required fields is added by the CSS class
bf-required
. - Both the field and the label bear the CSS class
bf-no-message
,bf-info
,bf-warning
,bf-error
orbf-fatal
, depending on the severity (or existence) of the FacesMessage associated with the input field. - By default,
bf-error
andbf-fatal
color the label red.bf-warning
colors the label orange.
The feature has been implemented forb:inputText
,b:selectOneMenu
,b:selectMultiMenu
(although this currently doesn't render labels) andb:slider
. - The new BootsFaces Seach Expressions API supports most of the advanced PrimeFaces Search Expressions and adds a few new search expressions, such as Unix-style wildcards.
- Many options to influency resource file loading and ordering (#121, #197).
<b:dropMenu />
can optionally show an icon.- We've added a
disabled
attribute to most BootsFaces components. - Menus and submenus can now be nested (see #133).
- We've added the attributes
style
andstyleClass
to many components. In some cases, we've also addedcontentStyle
andcontentStyleClass
.
Bug fixes:
- Various bugfixes concerning tooltips:
** A tooltip now has atooltip-container
attribute that's converted to the Bootstrap attributedata-container
. The default value is "body".
** The last button of a<b:buttonGroup />
didn't have rounded corners when it had a tooltip. Now that's fixed. <b:selectBooleanCheckbox />
now works without AJAX. Previously, it could be checked, but it couldn't be unchecked again.- If you page had multiple navbars, they didn't expand and collapse independently on small screens. Expanding one of them expanded each of them. We've fixed that.
<b:messages />
now has a "close" icon.- We've improved the escaping of IDs and modified several IDs so they don't have to be escaped. The rationale behind that is that jQuery doesn't cope with the standard JSF IDs which contain colons.
- Corrected the taglib. It didn't always align with the real components. So your IDE offered you wrong attributes, attributes that didn't exist or it didn't show every attribute. Now that's fixed.
<b:selectOneMenu />
respects the attributerequired
.<b:commandButton />
can now be used with<ui:repeat />
.- Fixed the resource dependencies of several components.
- Corrected the HTML code of collapsed panels (see #126).
<b:button />
now supportsoutcome="@none"
,outcome=""
or simply no outcome to suppress the default behavior.- fixed disabled
<b:selectBooleanCheckboxes />
. It lost its value after a request (#111).
Breaking changes:
- We've removed the "fade" class from modal dialogs (
<b:modal />
). This gives you the opportunity to decide yourself if you need the fade effect or not. If you do, add "fade" to the list of styleClasses. - The id of b:icon and b:iconAwesome is not the regular client id, without the suffix _icon, unless it's an appended or a prepended icon.
- The HTML code of several components uses a slightly different id than they used in previous versions. Instead, they use ids that are compatible to jQuery. In most cases, you shouldn't even notice, because you couldn't do anything with the ids anyways.
You will find two downloads, the default is with Bootstrap only (default Theme) the second is the complete Jar with all 16 Bootswatch Themes included.