Skip to content

Data management

Status: ✅ Implemented (Java, .NET, Python)

Present a large data set two ways — a data grid and a Gantt timeline — on one dense, full-width page, with a toolbar switcher so the user can review it as a table or as a schedule, and panels docked beside or under it for details and messages. The Oracle Redwood Data management template.

In Redwood the template is a transactional workspace for complex data: the user sorts, filters and edits the grid in place, follows the same records as tasks on a timeline, and keeps supporting information in panels around them. Mateu’s DataManagement archetype gives the page, the switcher and the docked panels; the grid and the Gantt are whatever components you hand it.

  • A big, homogeneous set of records the user reviews and plans — production operations, a bill of materials, a project’s tasks — where both a tabular and a time-based view make sense.
  • The user needs density: many columns, many rows, little chrome, the full width of the window.
  • Not for a plain list with a detail page (use a CRUD or a collection detail), and not for a schedule alone (use the Gantt page).
RegionWhat it holdsMateu piece
Page headertitle (Redwood: also subtitle, avatar, Save/Cancel, undo/redo, history, timestamp)heading() — the class @Title by default; no header actions (see Known gaps)
Toolbarthe view switcher and the panel toggles (Redwood: also edit icons, sort, export, column settings)built by the archetype: gridLabel() / ganttLabel() buttons + one toggle per docked panel
Data gridthe records as a dense tablegridView(rq) — any component: a fluent Grid, an embedded crud/listing, @InlineEditing + @Compact for in-place editing
Ganttthe same records on a time axisganttView(rq) — typically a Gantt
End panel (innerEnd)a details or properties pane beside the contentendPanel(rq) → DockedPanel
Bottom panel (innerBottom)a messages, log or totals strip under the contentbottomPanel(rq) → DockedPanel
Overlay panels (outerEnd / outerBottom)panels that float over the pagea Drawer returned from an action

The data management page showing the grid view

The same page switched to the Gantt view

  • The page is full width at every size (PageWidthStyle.FULL_WIDTH).
  • An open end panel is a fixed track beside the content (default 22rem); below 48rem of available width it stacks under the content instead.
  • The bottom panel caps its height at its size (default 16rem) and scrolls.
  • Redwood at phone width (below 600 px): the docked panels start closed, because JET turns a docked drawer into a full-screen sheet there and it would hide the content; they dock again when the window is wide.

Legend: ✅ supported · 🟡 partial · ❌ not supported

ElementMateu pieceRedwoodNote
Full-width canvaspageWidth() → PageWidthStyle.FULL_WIDTH✅
Grid ⇄ Gantt switchgridView(rq) / ganttView(rq); labels gridLabel() / ganttLabel(); the active view is page state (_view)✅the grid is an oj-table, the Gantt an oj-gantt
Page headingheading() (from @Title; return blank to omit)✅Redwood paints it as the title of Spectra’s oj-sp-data-management-page header
Docked end / bottom panels (reflow)endPanel(rq) / bottomPanel(rq) → DockedPanel(id, title, content, size, open)✅a toolbar toggle and a ✕ per panel; open state is page state. Redwood docks them in the template’s innerEnd (oj-sp-general-drawer-template) and innerBottom (oj-sp-bottom-drawer-template) drawers; size is not applied there (Spectra’s own drawer sizes)
Overlay panelsreturn a Drawer (modeless, any DrawerPosition) from an action🟡Redwood opens every drawer modal at the end edge — see Drawer
Bottom drawer states (closed / minimized / maximized)DrawerPosition.bottom + collapsible + maximizable✅oj-sp-bottom-drawer-template (see Drawer)
Density@Compact, Grid.compact(true)✅
In-place editing in the gridan embedded AutoCrud with @InlineEditing as gridView🟡a fluent Grid is read-only; not a spreadsheet-style data grid (no cell selection)
Transactional header (Cancel + one primary)a @Toolbar method named cancel and one @Toolbar(buttonStyle = primary) method✅opt-in: without them the header has no Cancel/primary. Redwood binds them to the template’s own Cancel and primary buttons
Header pieces (subtitle, overline, @Timestamp, @KPI, badges, peer navigation, record switcher)the same annotations / supplier interfaces as any page🟡Vaadin draws them in the page header; Redwood’s data-management template has no slot for them yet
Undo/redo, history—❌
Tab bar under the header—❌
Messagestoasts and alerts ride on the wire’s messages, not as a page slot🟡
Searchthe app-level smart search bar / ⌘K palette, not a page slot🟡
Screen-reader announcementsUICommand.announce(text) from any action✅
Feedback survey⚪ out of scope—

Extend DataManagement and supply the two views:

@UI("/project-plan")
@Title("Project plan")
public class ProjectPlanBoard extends DataManagement {
record Task(String id, String name, LocalDate start, LocalDate end, int progress) {}
record TaskRow(String id, String name, String start, String end, String progress) {}
static final List<Task> TASKS = List.of(
new Task("t1", "Analysis", LocalDate.of(2026, 1, 5), LocalDate.of(2026, 1, 16), 100),
new Task("t2", "Design", LocalDate.of(2026, 1, 12), LocalDate.of(2026, 1, 30), 80),
new Task("t3", "Build", LocalDate.of(2026, 1, 26), LocalDate.of(2026, 3, 6), 45));
@Override
protected Component gridView(HttpRequest rq) { // the dense table
List<Object> rows = new ArrayList<>();
for (Task t : TASKS) {
rows.add(new TaskRow(t.id(), t.name(), t.start().toString(), t.end().toString(),
t.progress() + "%"));
}
return Grid.builder()
.compact(true)
.content(List.of(
GridColumn.builder().id("name").label("Task").build(),
GridColumn.builder().id("start").label("Start").build(),
GridColumn.builder().id("end").label("End").build(),
GridColumn.builder().id("progress").label("%").build()))
.page(new Page<Object>("", 20, 1, rows.size(), rows))
.build();
}
@Override
protected Component ganttView(HttpRequest rq) { // the Gantt canvas
List<GanttTask> bars = new ArrayList<>();
for (Task t : TASKS) {
bars.add(new GanttTask(t.id(), t.name(), t.start(), t.end(), t.progress(), null));
}
return Gantt.builder().tasks(bars).build();
}
}
  • The page lays out full width (PageWidthStyle.FULL_WIDTH).
  • A toolbar switcher (two buttons, labels via gridLabel()/ganttLabel()) flips the active view.
  • The active view is kept in state (_view, "grid" by default) and the page re-renders in place when the user switches — no navigation.
  • A heading (from @Title) sits above the toolbar; override heading() or return blank to omit it.

gridView is any component — typically a dense table (an embedded crud/listing, a fluent Grid, or @InlineEditing + @Compact for in-place editing); ganttView is typically a Gantt (the same canvas the GanttPage archetype uses). Pure composition of existing components, so it renders on Vaadin, Redwood (oj-table + oj-gantt) and the native renderers without renderer work.

The Redwood data-management page docks panels beside and under the content — a details pane next to the grid, a messages or log strip under it. Override endPanel(rq) and/or bottomPanel(rq):

@Override
protected DockedPanel endPanel(HttpRequest rq) {
return DockedPanel.builder().id("details").title("Details")
.content(new Text("Select a row to see its details.")).size("24rem").open(true).build();
}
@Override
protected DockedPanel bottomPanel(HttpRequest rq) {
return DockedPanel.builder().id("log").title("Log").content(new Text("No messages.")).build();
}

Each declared panel gets a toggle in the toolbar (and a ✕ in its own header); whether it is open is page state, so toggling re-renders in place. The panels reflow the content — the grid or Gantt shrinks to make room (the end panel is a fixed track beside it, stacking under it below 48rem; the bottom panel caps its height at size, default 16rem, and scrolls) — which is the inner, modeless variant of the Redwood slots. For an overlay panel, return a Drawer from an action.

Docked end and bottom panels

Java.NETPythonVaadinRedwoodReact NativeIntelliJ
View switcher (grid ⇄ Gantt)✅✅✅✅✅✅✅
Docked end / bottom panels✅✅✅✅✅✅✅

A YAML page fills the template with template: {type: DataManagementPage} on its type: Form: the form’s content is the data view (typically a Listing), its toolbar’s buttons sit over the data, and the template’s end and bottom are DockedPanels docked beside and under it — see Page templates. With no server behind the page a panel cannot be toggled by an action: it is shown while open. On Redwood a Listing in the data view is painted inside the template (with its own search box).

type: Form
title: Fleet
toolbar:
- {type: Button, label: New vehicle, buttonStyle: primary, actionable: {type: RouteLink, route: vehicles/new}}
template:
type: DataManagementPage
end: {id: fleet-summary, title: Fleet at a glance, open: true, content: {type: MetricCard, title: Vehicles, value: "39"}}
content:
- {type: Listing, rowRoute: "vehicles/${row.id}", rowsSource: {ref: swapi-vehicles}, columns: [{type: GridColumn, id: name, label: Name}]}
  • The transactional header is opt-in (a cancel + one primary @Toolbar method); no undo/redo, history or tab bar.
  • The grid is a table: no spreadsheet-like cell selection; editing needs an embedded crud with @InlineEditing.
  • Overlay panels inherit the Redwood drawer gaps (always modal, end edge).
  • On Redwood the page is Spectra’s oj-sp-data-management-page; its header is transactional by design, so the Cancel / primary buttons it always draws stay hidden unless the page declares them. Subtitle, KPIs and the other header pieces are not drawn there yet.

Details: data-management review.

demo-admin-panel/.../datamanagement/DataManagementDemo.java and demo-redwood-showcase (/data-management-demo): a project plan shown as a table and as a Gantt, switchable from the toolbar; in the showcase a click on a task name opens its detail in a drawer. Docked panels: e2e/sut /patterns/data.

See it live in the Explorer: Data management · Data management page