ph-oton-bootstrap4

June 2, 2026 · View on GitHub

Sonatype Central javadoc

If this project saved you some time or made your day a little easier, a star would mean a lot — it helps others find it too.

This set of Java libraries forms a package to build Java web applications.

Contained subprojects are:

  • ph-oton-bootstrap4 - Java Wrapper for the Bootstrap 4 controls
  • ph-oton-bootstrap4-uictrls - special UI controls for Bootstrap 4
  • ph-oton-bootstrap4-pages - predefined UI pages with Bootstrap 4 styling
  • ph-oton-bootstrap4-stub - Servlet stub for Bootstrap 4 web applications
  • ph-oton-bootstrap4-demo - a standalone demo web application to be run in Tomcat or in provided Jetty

Requirements

  • Java 17+ is required for building
  • Application server requirement JakartaEE 10:
    • At least Tomcat 10.1
    • Jetty 12.x with AnnotationConfiguration enabled

Maven usage

Replace x.y.z with the effective version number.

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.helger.photon</groupId>
        <artifactId>ph-oton-bootstrap4-parent-pom</artifactId>
        <version>x.y.z</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

Bootstrap 4

To use Bootstrap 4 front end use:

  <dependencies>
    <dependency>
      <groupId>com.helger.photon</groupId>
      <artifactId>ph-oton-bootstrap4-stub</artifactId>
    </dependency>
  </dependencies>

See the submodule ph-oton-bootstrap4-demo for a working example project with Bootstrap 4 UI.

News and noteworthy

v10.1.4 - work in progress

  • Removed OSGI bundling

v10.1.3 - 2026-04-12

  • Removed the z-index from CSS .sticky-bottom

v10.1.2 - 2026-02-21

  • Updated to ph-oton 10.2.0

v10.1.1 - 2026-01-10

  • Updated to ph-oton 10.1.2
  • Added sticky-bottom CSS class
  • Made sure all package names are "bootstrap4" and not just "bootstrap"

v10.1.0 - 2025-11-16

  • Updated to Jetty 12.1.4
  • Updated to ph-commons 12.1.0
  • Using JSpecify annotations
  • Slightly improved the page with the scheduled actions
  • Fixed an NPE in the "System Information / Security" page, if the file {java.home}/lib/security/java.security does not exist

v10.0.0 - 2025-08-25

  • Requires Java 17 as the minimum version
  • Updated to ph-commons 12.0.0
  • Updated to Jetty 12.1.0
  • Extracted from ph-oton

My personal Coding Styleguide | It is appreciated if you star the GitHub project if you like it.