The CUI JSF Bootstrap module provides JSF component implementations based on Bootstrap CSS framework. It offers a comprehensive set of UI components that follow Bootstrap design patterns while integrating seamlessly with the JSF component lifecycle.
<dependency>
<groupId>de.cuioss.jsf</groupId>
<artifactId>cui-jsf-bootstrap</artifactId>
</dependency>-
JSF components mapped to Bootstrap CSS classes and components
-
Responsive design support through Bootstrap grid system
-
Consistent styling using Bootstrap themes
-
Integration with Bootstrap JavaScript features
-
Complete set of Bootstrap-styled UI components
-
Form controls with Bootstrap styling
-
Navigation components
-
Layout components based on Bootstrap grid
-
Interactive components (modals, tooltips, etc.)
-
Grid system components (row, column)
-
Container components
-
Panel and card components
-
Tab and accordion components
-
Input fields with Bootstrap styling
-
Form layout components
-
Input groups
-
Validation display integration
<boot:row>
<boot:column size="md-6">
<!-- Content for left column -->
<h:outputText value="Left Column Content" />
</boot:column>
<boot:column size="md-6">
<!-- Content for right column -->
<h:outputText value="Right Column Content" />
</boot:column>
</boot:row><boot:form>
<boot:formGroup>
<h:label for="name" value="Name" />
<h:inputText id="name" value="#{bean.name}" />
</boot:formGroup>
<boot:formGroup>
<h:label for="email" value="Email" />
<h:inputText id="email" value="#{bean.email}"
placeholder="Enter email address" />
</boot:formGroup>
<boot:commandButton primary="true"
value="Submit"
action="#{bean.submit}" />
</boot:form><boot:modalDialog id="exampleModal"
title="Confirmation"
binding="#{bean.modal}">
<boot:modalBody>
<h:outputText value="Are you sure you want to proceed?" />
</boot:modalBody>
<boot:modalFooter>
<boot:commandButton value="Cancel"
dismiss="modal" />
<boot:commandButton primary="true"
value="Confirm"
action="#{bean.confirm}" />
</boot:modalFooter>
</boot:modalDialog>
<boot:commandButton value="Open Modal"
onclick="$('#exampleModal').modal('show')" />-
Default Bootstrap theme is used by default
-
Custom themes can be configured through CSS overrides
-
Theme colors are consistently applied across components
-
All components follow Bootstrap’s responsive design principles
-
Mobile-first approach with responsive breakpoints
-
Predictable behavior across device sizes
-
Follows Bootstrap’s browser compatibility guidelines
-
Tested across major modern browsers
-
Graceful degradation for older browsers
-
Use the grid system for layout instead of tables
-
Apply consistent sizing across related components
-
Leverage the built-in responsive capabilities
-
Follow Bootstrap’s nesting rules for components