Add a generic ProgressBar component to wicket-extensions

Open
#1,635 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@reiern70 is already working on this.

Since Oct 1, 2026.

Assessment

This issue has not been assessed yet.

Description

Wicket has no general-purpose progress bar. UploadProgressBar is tied to file uploads, so applications that need to show the progress of some work (a background job, an import, a multi-step process) each build their own markup and CSS.

This proposes org.apache.wicket.extensions.markup.html.progress.ProgressBar, a small CSS-only component:

  • Model: an IModel<? extends Number> holding a percentage. Values are rounded and clamped to 0–100.
  • Indeterminate: a null model value renders an indeterminate bar, for work whose end is unknown ("working on it"): no percentage, only an animated striped bar. isIndeterminate() tells which state the bar is in.
  • Markup: attached to a . It renders a native element (no value attribute when indeterminate) and a label such as 42%. Existing class attributes on the tag are kept. The same markup is available as a string from ProgressBar.markup(value) and ProgressBar.indeterminateMarkup(), for example as the template of a column rendered in the browser.
  • Content Security Policy: no inline style; the width comes from the progress element itself, so the bar works under a strict CSP.
  • Accessibility: the native progress element carries the value for assistive technology; the visible label is aria-hidden.
  • Styling: the look comes from wicket-progress-bar.css, contributed by the component. It uses the classes wicket-progress-bar, wicket-progress-bar-value and wicket-progress-bar-label, so applications can restyle it. The filled part is striped and the stripes move; the animation stops when the user prefers reduced motion. The label is bold on a chip of the track's color, so it stays readable over the filled part and on dark pages. Colors come from the shared themes of wicket-extensions (org.apache.wicket.extensions.theme) where a theme applies, with a neutral default otherwise.
  • Updating: the component re-renders like any other, so target.add(progressBar) in an Ajax or web socket request updates it.
Dominant language
Java
Stars
800
Forks
437
Avg merge
21h 36m
Merged PRs (30d)
167

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/wicket

All issues in apache/wicket

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.