TopLogic - the automated application engine
  • Releases
  • Dokumentation
  • Github
  • Discord
  1. Home
  2. Releases
  3. TL_8.0.0-alpha9
  4. #29532

8.0.0-alpha9
TopLogic Release

2026-10-01

enhancement

major
#27490
Historie begrenzen/abschneiden/aufräumen
#29004
Allow to use a virus scanner for uploads
#29006
Uniqueness constraint
#29421
Add a React calendar view control and declarative <calendar> UIElement.
#29429
Complete the view designer so a view can be built with it end to end
#29462
React: Generisches Formularelement zum Bearbeiten von Konfigurationen
#29487
React view: <form> exposes neither column count nor label position, and there is no <group> element
#29499
Hinweis auf den Wartungsmodus in der React-Oberfläche
#29507
Hinweis auf den bevorstehenden Session-Timeout in der React-Oberfläche
#29523
<sidebar> exposes two of the five sidebar item kinds ReactSidebarControl renders, and none of the badge
#29525
Offer the app-bar user menu in the core view layer
#29528
Let the UI theme follow the system's dark/light preference
#29529
Stellvertreter als explizite Sicherheitsaktion im Einstellungsdialog der TL Views benennen (mit Passwortbestätigung, auch für die Passwortänderung)
#29530
URL routing in TL Views: model objects in route parameters, drill-down path in the URL, query bindings
#29531
Filterleiste für Tabellen: Presets, Freitextsuche über die sichtbaren Spalten und benutzereigene gespeicherte Filter
#29532
Object navigation in TL Views: display targets, a reveal protocol for containers, and a show-object action
#29540
Usability feedback on the user menu and the personal settings dialog
#29542
TL Views: channel-bound value inputs for every primitive and reference type, with a submit hook
#29543
TL Views: conditional branches in a generic-command action chain
#29544
TL Views table: row activation by double-click or Enter, and a grouping UI over the existing table model
#29545
TL Views table: drag and drop of rows between tables and onto rows
#29546
TL Views: colors for enumeration literals and classifier objects rendered as pills, and a progress control
#29547
Generierte React-Bundles nicht mehr einchecken
#29548
React view UI: URL, e-mail and phone attributes are edited as typed inputs and displayed as links
#29551
TL Views: only registered entry points may be loaded top-level via URL
#29557
React view commands: the ExecutableState reason of a disabled command never reaches the client, and there is no disabled-if rule beside visible-if
#29567
TL Views: Mehrfachauswahl für Tabellen und Bäume (selection-mode="multi")
#29575
TL Views: UI-Inspektor – Zustand eines Elements der React-Oberfläche einsehen (z. B. durch Zugriffsrechte ausgeblendete Tabellenzeilen) und als Skript-Zusicherung aufzeichnen
#29596
TL Views: Gestaltungsoptionen für app-spezifische Oberflächen (css-class, Text-Varianten, Layout-Optionen, Anzeigevarianten für Eingaben, Theme-Tokens)
#29597
TL Views: object-list als generischer Repeater (Elemente ohne Container, Raster-Layout, Index für gestaffelte Animation)
#29598
TL Views: image mit URL-/Ressourcen-Quelle, Seitenverhältnis, Füllmodus und überlagerten Inhalten; avatar mit Foto
#29599
TL Views: Wizard-/Stepper-Element für mehrstufige Dialogflüsse (statische und dynamische Schritte, Fortschritt, Übergänge, Auto-Weiter)
#29600
TL Views: Anzeige lang laufender Server-Aufträge (Phasen, Fortschritt, unbestimmter Fortschritt, verstrichene Zeit)
#29601
TL Views: Anzeige von HTML-Inhalten und HTML-Dokumenten (Agenten-Antworten, Exposés) mit Vorschau und Druck/PDF
#29603
Physisches Löschen gelöschter Objekte aus versionierten Tabellen (Purge): Abschlussmenge über Pflichtreferenzen und Inhalte, optionale Verweise werden geleert
#29605
TL Views table filter bar: an initially active preset, and the active preset and search term as channels for query bindings
#29607
TL Views: a display target reveals a tab inside a pushed frame (a <show> is located within the view shown before it)
#29608
TL Views: value-input mit Platzhalter, zugänglicher Name bei verborgenem Label, bedingte Anzeige von Elementen mit visible-if
#29615
TL Views: a <form> spanning a page does not take part in the fill contract, so a split panel or filling panel inside it is sized by its content
#29617
Design System: Tokens and base classes as own package (wave 0)
#29625
TL Views: a page layout of weighted columns (main 2/3, side 1/3) that reflows to one column on a narrow viewport; the split-panel keeps its sashes and clips the side pane at 400 px
#29629
TL Views: `<show-view>` / `<show-views>` actions reveal a mounted view by name and write its channels from a command chain without a model object
#29630
TL Views: a chunked, transactional job body for <start-job> - scripted init / elements / steps / finish, one transaction per chunk, per-item retry and skip, phases and progress derived from the steps
#29637
Modellbasierte Berechtigungsdefinition: Zugriffselternobjekt (Delegation der Zugriffsentscheidung an Container oder Referenz, Standard für Kompositionsteile, Entscheidungs-Cache je Interaktion), Rollenelternobjekt statt Security-Parent, Vollständigkeitsprüfung und Assistent
#29640
TL Views: Gruppen einer gruppierten Tabelle werden nach dem Komparator der Gruppierungsspalte sortiert, nicht in zufälliger Reihenfolge
#29641
TL Views: Der React-TL-Script-Editor zeigt Hilfetexte zu Funktionen und Modellelementen an (Kontexthilfe zur Vervollständigung, Hover-Tooltips) und springt beim Tippen nicht mehr an den Textanfang
#29643
TL Views: Anpassung der React-Oberfläche an das Corporate Design eines Kunden mit eigener React-Komponentenbibliothek (Leitfaden und fehlende Erweiterungspunkte)
#29671
TL Views: Drag & Drop in Tabellen nach Regeln einschränken, mit Rückmeldung pro Ziel während des Ziehens
#29681
TL-Script modifiedRevision() berücksichtigt Referenz- und Übersetzungsänderungen; Attribut-Storages "touchen" das Besitzerobjekt nicht mehr
#29690
Option zum Deaktivieren des Browserstarts beim Hochfahren
#29706
Speed up slow unit tests in tl-core and tl-element
minor
#28324
Create documentation for layout overlays
#29500
No way to show a master-detail as an overlay: the detail always costs the list half its width
#29506
A dashboard tile cannot be the entry point it looks like: neither <tile> nor <card> carries an action
#29550
React controls do not consume the theme's radius and surface tokens consistently; a flat theme needs per-component CSS overrides
#29553
React view <table>: <column> has no width, every column defaults to 150 px, so a table with more than six columns overflows a 940 px pane
#29611
TL Views: `<notify>` action shows a translated notice in a generic-command chain (snackbar or OK dialog, optionally stopping the chain); `<throw-error>` removed
#29624
SSO-Login ohne registrierten Benutzeraccount: konfigurierbare Hinweisseite (ApplicationPages.unknownAccountPage) statt Login-Maske, mit Standardseiten für die klassische und die React-Oberfläche
#29670
TL-Script: Funktionen trim, trimStart und trimEnd entfernen Leerraum am Anfang und Ende einer Zeichenkette
#29675
TL Views: Anlegen und Löschen richten sich nach den Modell-Zugriffsrechten, statt erst nach dem Ausfüllen mit „Kopieren nicht erlaubt“ abgelehnt zu werden
#29683
TL-Script: htmlText(html) cannot carry images, so an HTML text with <img> referencing files cannot become a structured text

defect

critical
#29665
TL Views: a click into a rich-text field with a hidden label focuses the editor's Bold button, so the typed text is lost
#29682
TL Views: ConcurrentModificationException in ReactToolbarControl.replaceGroups on a page reload shows the "Internal error" page
major
#25723
Missing check against attribute name clashes during inheritance
#29438
React view layer displays date attributes in a hard-wired format instead of the annotated one
#29474
Neither React drag handle shields the page (or locks the cursor) while dragging
#29502
<tree> does not follow model changes: a delete never arrives, a create collapses the whole tree
#29504
Zwangsabmeldung erreicht die React-Oberfläche nicht
#29509
Die Cookie-Prüfung weist den erneuten Aufruf ihrer eigenen URL ab und meldet dabei die Sitzung ab
#29512
Attribute in tl.model, die de-facto mandatory sind, auch als mandatory deklarieren
#29533
TL Views: executability rules and derived channels must follow changes of the object on a channel, not only of the channel value
#29534
TL Views tile-stack: frames get no definite height, and a frame that is uncovered again is rebuilt from scratch
#29535
TL Views table: a selection channel value that is not among the rows must not be cleared by the table
#29541
Single-valued drop-down select shows two clear buttons
#29554
React view <table>: Spalten für beliebige Zeilenobjekte – berechnete Spalten, eingebettete Spalten referenzierter Objekte, dynamische Spalten; transiente Zeilen
#29556
react-api/tooltip runs without a TLSubSessionContext: a cell tooltip over a derived attribute using label() answers HTTP 500 (NullPointerException in Label.eval)
#29560
React view <upload-command>: Fehler beim Upload (Ausnahme in der Aktionskette, überschrittenes Größenlimit) erreichen den Benutzer nicht; Upload-Größenlimit konfigurierbar
#29562
security.xml grants for a SecurityScopeService scope are lost on the start that introduces the scope: AccessConfigurationSetupService imports before the scope exists and stores the file hash anyway
#29564
SecurityConfigurationService: an application cannot add a role to a framework type's grant — a <class> grant is keyed by operation and replaces the earlier entry, silently revoking the framework's roles
#29568
TL Views: Eine ohne Anmeldung aufgerufene Route geht beim Login verloren
#29573
TestReactStylesheetTokens fails on master: the pill and progress rules of tlReactControls.css do not keep the theme-token contract
#29574
TL Views: Veto eines verschachtelten Channel-Schreibzugriffs bricht die Benachrichtigung des äußeren Channels ab (Tabelle und Detailbereich bleiben nach "Verwerfen" auf dem alten Objekt)
#29576
React-Controls-Bundle enthält eine zweite React-Instanz (createPortal-Import in TLDropdownSelect)
#29586
tl-layout-react test compilation fails on master: TestSelectValueObservation and TestResourceCellObservation use the DefaultReactContext constructor that #29552 removed
#29590
React view: Mehrwertige String-Werte werden in Tabellenzellen und Anzeigefeldern ohne Trennzeichen aneinandergehängt
#29602
TL Views: a URL adopted into an existing session keeps the slot content of the sidebar item that was active before
#29604
ElementSecurityUpdateManager: quadratic collection diff on commit (AbstractSet.removeAll over a List) makes appending to a large reference take seconds
#29609
TL Views: a `<progress>` (ChannelObjectObserver) evaluates its expression on a deleted object and logs an ERROR when an observed object is deleted
#29610
TL Views: a table on an inactive tab shows stale cell values after the displayed objects changed, until its rows are refreshed
#29613
TL Views: a `<dashboard>` tile gets no definite height, so a table in a tile grows with its rows instead of scrolling
#29618
TL Views: a URL switches the sidebar away from an item with unsaved changes without asking
#29619
TL Views: a warning-level configuration constraint is dropped, so the model editor shows nothing
#29620
TL Views: a tree node is never a link to where its object is displayed, although the display targets declare one
#29622
TL Views: a `<flow-diagram selection="ch">` writes its channel but does not follow it, so a node selected elsewhere is not marked in the diagram
#29623
Build: the translate goal re-translates committed German messages after a pull or branch switch when the doclet did not run in the same build
#29626
TL Views: a panel toolbar has no overflow mode; at 400 px width the ticket page's six commands run 908 px wide, three of them unreachable, and the panel title is pushed out
#29627
TL Views table: an I18NString cell wraps its text and is clipped mid-glyph by the 36 px row instead of ending in an ellipsis; header labels are cut without an ellipsis
#29631
TL Views: Escape closes a <window> dialog while a <start-job> it started is still running; the job runs on with nothing left to show or cancel it
#29634
TL Views: the configuration editor builds a text field for a property whose format is parse-only, so selecting a derived attribute in the model editor fails with "There is no normative way to serialize a locator configuration"
#29635
TL Views: a <tree> renders every node as a link, so a click on the label navigates away instead of just selecting the node
#29639
TL-Script objectResolve(id, typeOrTable): resolution via a type including its subtypes or via a table name, objectTable delivers the table of an object, and an object the current user may not read is not resolved
#29644
Inkrementelle Security unvollständig bei Verwendung von scripted-steps
#29648
TL Views: Die über ClientResources ausgelieferten Skripte und Stylesheets tragen keine Version in der URL, der Browser verwendet nach einer Aktualisierung veraltete Client-Dateien
#29649
TL Views: a job's final state is overwritten by a stale "running" snapshot, so <job-status> shows a completed job as running
#29666
TL Views: leaving a frame by breadcrumb, Back, navigate-pop, show-object or logout discards a form's unsaved changes without asking
#29667
TL Views: a form in edit mode keeps showing stale values after a command committed a change to the same object
#29672
TL Views: initial-edit-mode, an object switch and the edit-mode channel enter edit mode without asking <edit-executability>
#29674
TL Views: after a page load, app-bar command labels appear in the browser's language instead of the user's ("Record" in a German session)
#29677
TL Views: a card in a content-sized column stack shrinks below its content; a table beside it takes more height than it reports
#29678
BoundHelper: Einstellung use-default-security-parent entfernen – ohne konfigurierte Security-Parent-Regel hat ein Objekt keinen Security-Parent
#29680
Classic UI: the anonymous session is offered the developer options and can run "Ressourcen neu laden"
#29698
CollectionUtil.removeDuplicates() verliert die Reihenfolge der Elemente
#29705
Workspace/PathInfo: web-fragment.war eines Moduls wird nicht gefunden, wenn Jar und Fragment aus verschiedenen lokalen Maven-Repositories aufgelöst werden (maven.repo.local.tail)
minor
#27889
Switch to SNAPSHOT version does not work
#28474
Background colors of the buttons are not consistent
#29496
React table: a column resize is rejected with "Integer value expected" and the new width is lost when the client sends a fractional width
#29497
React UI tooltips: clipped table cells and column headers, compact toolbar buttons and attribute descriptions get tooltips; native title attributes replaced by bridge tooltips
#29503
TLResourceCell ships no CSS: icon and label touch wherever a resource cell shows both
#29505
Panel header changes height when its toolbar has no commands, so master-detail headers do not line up
#29508
Weitere QueryExecutor bedürfen keiner Security
#29552
TLPhotoViewer fetches its image after the control was disposed when a <switch> replaces it (404 on react-api/data, "Command target NOT FOUND" WARN)
#29555
TL-Script label(<constant>) is folded at compile time: the result is fixed to the compiling thread's locale instead of the reading user's
#29558
XMLInstanceImporter silently imports an internationalized attribute given as value="…" as empty, even when the attribute is mandatory
#29561
TL Views: display of a referenced object does not follow a change of its label (table cell, form field)
#29563
Standardgruppe: das persistierte Gruppen-Flag "defaultGroup" wird aus der Konfiguration abgeleitet statt in der Datenbank gespeichert; Semantik der Standardgruppe dokumentiert
#29591
ResKey.decode akzeptiert in #(…)-Literalen nur doppelt gequotete Übersetzungen — #('Travel'@en) schlägt fehl, obwohl TL-Script beide Quote-Arten erlaubt
#29606
TL Views: a `<color token>` naming a token the React theme does not emit renders the pill untinted, silently
#29628
TL Views: "Reset personal settings" clears the stored configuration, but the running session keeps its table state and writes it back; the declared column widths return only after a new login
#29636
TL Views: a click on a <tree> node clears the selection channel before setting it, so every dependent display and command flips to empty and back
#29663
TL Views: a <form> no longer insets itself; a <fields> grid inside a form got the page inset twice
#29664
TL Views: the form's Edit, Save, Cancel and Apply commands are labelled with a trailing period ("Bearbeiten.", "Speichern.")
#29668
TL Views: the rich-text editor's toolbar overflows a narrow field; table and undo/redo buttons are cut off
#29669
A request with a malformed query string ("?q=50%") is answered with an "Internal error" page (HTTP 500) instead of 400
#29673
TL Views: personalization commands ("Layout bearbeiten", "Diesen Filter speichern") are offered to the anonymous session
#29676
TL Views admin: deleting an account logs "Target object is deleted" from the still-open account form; delete asks for no confirmation
#29679
TL Views: a command refused by its executability rule is reported with the title "Interner Fehler"

task

minor
#29612
FAQ: Migration guide for upgrading an application from TL 7.11 to 8.0
#29702
Mindestversion von Maven im Build auf 3.8.9 anheben
enhancement

major

#29532

Object navigation in TL Views: display targets, a reveal protocol for containers, and a show-object action

ReactUI

Problem

In the classic UI a link to a business object is resolved on the server: GotoHandler receives the object, looks up the component that displays objects of its type (WithGotoConfiguration.getGotoTargets(), a map from TLType to ComponentName, with a global default), and LayoutComponent.makeVisible() walks the component tree so that every ancestor - tab, dialog, layout - shows the child on the way to that component. Object links inside structured text are tlObject anchors written by TLObjectLinkUtil; a click runs the OpenTLObjectLink control command, which resolves the object server-side and either navigates or opens it in a dialog. No client-side URL is involved anywhere.

The view layer (com.top_logic.layout.view) has no counterpart:

  • No display targets. Nothing declares which view shows an object of a given type. A <form input="ticket">, a <table selection="…"> or a <tile-stack> frame bound with bind-input-to all display objects, but the association "objects of type T are shown here, on channel C" exists only implicitly in TL-Script expressions.
  • No reveal protocol. There is no operation that makes a given element visible by asking each container on the way from the root to show the right child - the equivalent of makeVisible(). Each container has its own state channel (the sidebar's active item, the tab bar's active tab, the tile stack's path, the dialog stack), but none of them exposes "reveal this child".
  • No show-object action. A <generic-command> chain can write channels, open dialogs and run scripts, but it cannot say "display this object wherever it is displayed". The only navigation actions are <navigate-push>/`<navigate-pop>`, which are commands (see #29530) and presuppose that the caller already sits inside the right stack.
  • The client-side hooks dangle. ReactResourceCellControl sends a goto command when a linked cell is clicked and offers setGotoListener(GotoListener) with handleGoto(ReactContext, Object), but nothing in the engine calls setGotoListener, and the only creator (MetaResourceControlProvider) passes useLink = false. Structured text (I18NHtml) is displayed in the React UI without any handling of tlObject anchors.

Consequence for an application such as the issue tracker built on the view layer: a ticket reference in a description, an assignee cell in a table or a "blocked by" entry in a form cannot be followed. Any such link would have to be hand-wired per site with knowledge of the concrete sidebar item and stack, which does not generalize - an application need not have a sidebar at all.

A further requirement: showing an object may require several selections in order. A ticket of a milestone of a project, displayed three levels deep, is reached only by selecting the project, then the milestone, then the ticket - in a tile stack even across three frames with separate channel namespaces. A single "type T on channel C" declaration cannot express this, and a table that swaps its own model when asked for a selection it does not contain (the classic approach) produces fragile selection/model loops.

Solution

Three generic parts in com.top_logic.layout.view.navigation, none of which knows sidebars, tab bars or tile stacks in particular.

Display targets: the `DisplayTargetService`

Display targets are declared globally in the configuration of a service, the counterpart of the classic goto targets. The application decides which of the places that display a type is the place to show an object of it; a view file stays reusable and does not know that it is a navigation target; a library module contributes targets for its own types in its configuration fragment.

A target names a type and an ordered list of views to show, each with the channel values to set (from the React demo):

{{{#!xml <config service-class="com.top_logic.layout.view.navigation.DisplayTargetService">

<instance>
<targets>
<target type="tl.demo.projectManagement:Ticket">
<show view="projects/overview.view.xml">
<bind channel="project" expr="t -> $t.container()"/>
</show>
<show view="projects/milestones.view.xml"
label-expr="t -> $t.container().get(tl.demo.projectManagement:ProjectScope#name)">
<bind channel="project" expr="t -> $t.container()"/>
</show>
<show view="projects/tickets.view.xml"
label-expr="t -> $t.get(tl.demo.projectManagement:Ticket#milestone).get(tl.demo.projectManagement:Milestone#name)">
<bind channel="milestone" expr="t -> $t.get(tl.demo.projectManagement:Ticket#milestone)"/>
</show>
<show view="projects/ticket-detail.view.xml" label-expr="t -> $t.get(tl.demo.projectManagement:Ticket#title)">
<bind channel="ticket"/>
</show>
</target>
<target type="tl.demo.projectManagement:Contributor">
<show view="projects/contributor-dialog.view.xml" dialog="true">
<bind channel="contributor"/>
</show>
</target>
</targets>
</instance>

</config> }}}

A <show> entry is carried out in one of three ways, decided by how the view is reached:

  • The view is mounted somewhere in the application (a sidebar item, a tab, a <view-ref>, an <adaptive-detail> pane, the initial view of a <tile-stack>): the mount is revealed (see below) and the bindings are written to the view's channels in the declared order.
  • The view is not mounted: it is pushed as a frame onto the tile stack that hosts the previously shown view, with the bindings as the frame's bound values and label/`label-expr` as its breadcrumb label. A chain of such entries rebuilds a drill-down path; frames already on the stack with the same view, values and label are kept (pop to the longest matching prefix, push the rest), so a target reaching a frame the user drilled into by hand reuses it.
  • dialog="true": the view is opened as a dialog with the bindings as initial channel values (the same seam <open-dialog> uses); it must be the last entry.

A <bind> expression is a TL-Script function of the object being shown; it defaults to the object itself. The most specific type wins (an exact class beats a generalization); among several targets for one type, the one whose first view is mounted nearest to the view that triggered the navigation is preferred, then the one flagged default="true", then the first declared. hasTarget(type) answers whether objects of a type can be shown at all - this decides whether a value is rendered as a link. At startup the service checks every <bind channel> against the channels its view declares and logs a configuration error for a mismatch.

Where a view is mounted is determined by a static scan of the view configuration reachable from the application's root view: UIElement.getChildGroups() reports an element's content without a session - keyed for content a container addresses by a key (sidebar item id, tab id, adaptive-detail pane, tile-stack initial view), unkeyed otherwise, and as an embedded view for a <view-ref> - and ViewMounts derives from it the mount paths of every view file, cached and invalidated together with the view files. Sidebar items and tabs create their content lazily, which is why this knowledge cannot come from the control tree.

A reveal protocol for containers

Every control that shows one of several children implements ChildRevealer.revealChild(key): the sidebar activates the item, the tab bar selects the tab, <adaptive-detail> switches to its pane, the tile stack pops to the frame, a dialog closes the dialogs above it; <switch> needs nothing (it follows its input). Containers record their position when they create their children's contexts (a RevealPath scope in the ViewContext, analogous to the slot path), and a RevealRegistry per browser window maps mounted views and containers to their runtime instances. Revealing a mounted view walks its mount path from the root, asking each container on the way to reveal the next child - which creates content that is built lazily - and then writes the bindings into the view instance found at the end. This is makeVisible() for view elements. Unsaved changes veto a reveal exactly as they veto a channel write (confirmation dialog, then retry; cancelling aborts the command chain). The routing participants of #29530 are these same containers, so the address bar reflects the revealed state without additional work.

A `show-object` action and automatic links

<show-object/> is a ViewAction, usable in a <generic-command> chain beside <execute-script>, <with-transaction> and <open-dialog>: it shows the object handed in by the chain and passes it on; <generic-command input="selection"><show-object/></generic-command> is the whole configuration of a "go to" button. Java code calls ObjectNavigation.show. Controls of com.top_logic.layout.react reach the same operation through ReactContext.getObjectNavigator() (canShow, show), answered by the view layer, so that object values displayed read-only are links automatically wherever a display target exists for their type:

  • ReactResourceCellControl - tree nodes (via MetaResourceControlProvider) and any cell created with useLink; a GotoListener, if set, still takes precedence.
  • The read-only values of ReactDropdownSelectControl, which is how reference attributes are displayed in <table> cells and in view-mode <form> fields - so an assignee in a table or a "blocked by" entry in a form can be followed.
  • tlObject anchors in structured text displayed read-only by the React WYSIWYG control: a click is sent to the server (showObjectLink), the object is resolved with TLObjectLinkUtil as in the classic OpenTLObjectLink, and shown; a link to a deleted object or to a type without a target is reported to the user.

The TL-Script functions htmlObjectLink(object, label), htmlSource(content) and htmlText(source) (HtmlFunctions, com.top_logic.layout.wysiwyg) write such an anchor and read or write the HTML source of a structured-text attribute, so a command can append an object reference to a comment.

Commands in the WYSIWYG editor toolbar, and the control a field is edited with

Two general additions let an editor offer a "reference an object" button the way the classic CreateTLObjectLink editor plugin does, without the editor knowing anything about objects:

  • A field chooses its input control in the view. <field attribute="content"><input-control class="…Provider" …/></field> (FieldElement.Config) names the ReactFieldControlProvider editing this field where it is displayed, overriding the model's <input-control> annotation, the select rule and the type mapping (FieldControlService.createFieldControl with an explicit provider). A control that belongs to one place in the user interface - an editor whose toolbar opens a dialog of this very view - is configured in the view, so that the model keeps saying what the attribute is and the view how it is presented.
  • The WYSIWYG editor's toolbar carries configured view commands. WysiwygControlProvider takes <commands> - ordinary ViewCommand`s with label, icon, executability, `input=, <open-dialog>, <execute-script> and so on - and an optional insert-channel="<name>". The commands run in a child ViewContext of the field's view context: they see the channels of the surrounding view (the selected ticket, the project) and hand them on to the dialogs they open. Where an insertion channel is declared, it exists in that context beside the view's channels, and a String written to it is inserted at the cursor: the control pushes a one-shot insert request {seq, html}, the client inserts it at the current selection once per seq and reports the resulting text, which takes the request back (a remounted client never repeats it). The commands are built by ToolbarBuilder into a ReactToolbarControl (icon-only by default, like the formatting buttons) exposed as the toolbar child control, rendered by the client beside its own buttons. ViewCommands carries the model-building and lifecycle code shared with the elements that declare <commands>.

The React demo's comment composer configures it in tickets/comment-composer.view.xml:

{{{#!xml <field attribute="content" label-position="hide-label">

<input-control class="com.top_logic.layout.react.wysiwyg.WysiwygControlProvider" insert-channel="insert">
<commands>
<generic-command image="css:ri-links-line" input="ticket">
<label><en>Reference ticket...</en><de>Ticket referenzieren...</de></label>
<executability><null-input-disabled/></executability>
<open-dialog dialog-view="tickets/reference-ticket.view.xml">
<bind channel="context" to="ticket"/>
<bind channel="result" to="insert"/>
</open-dialog>
</generic-command>
</commands>
</input-control>

</field> }}}

The dialog receives the ticket the comment belongs to as context, and its Insert action is <execute-script function="t -> htmlObjectLink($t)"/><write-channel name="result"/><close-dialog/> - the whole contract between a selector and the editor. The former "Reference ticket" panel command of the composer appended the link at the end of the text by rewriting the draft, and was disabled while the mandatory content field showed an error, because its store-form-state action put the FormValid rule on it. The inserted link carries the target/`rel` attributes the TipTap link extension adds to every anchor; they do not affect following the link.

Also fixed on the way

  • A <table> did not show a selection its channel already named when the table was created (a drilled-down frame receives its selection as a parameter): the row stayed unhighlighted. It now applies the initial selection.
  • TLObjectLinkUtil.getLink/`getLinkDestination` accept any TLObject, not only a Wrapper.
  • OpenDialogAction.openDialog returns the DialogHandle of the opened dialog; DialogManager can close the dialogs above a given one.

Documentation and demo

docs/faq/react-view-layer.md describes display targets, the mount scan, the reveal protocol, the entry points, the field-level control choice and the editor's command toolbar. com.top_logic.demo.react gets a Projects drill-down (project, milestone, ticket, detail) whose types have display targets, a contributor dialog target, tl.accounts:Person shown in the tiles demo (whose initial view is mounted three times, exercising the nearest-mount rule), and the object-list comment composer references a project ticket through a command in the editor's toolbar; the rendered comment, the assignee cell, the milestone field and the account values navigate.

  • Get Started
  • Github
  • Discord
  • Das Unternehmen hinter TopLogic
  • Softwareentwicklung heute
  • Kontakt

© Copyright – Business Operation Systems GmbH

  • top-logic.com
  • Nutzungsbedingungen
  • Impressum
  • Rechtlicher Hinweis
  • Datenschutz
  • DE
  • Login