Posts

Showing posts with the label concept

WebExpress 2.0.2‑alpha – From Quickfilters to the Quickbar

Image
In WebExpress and applications built on top of it, users have previously only known classic Quickfilters. These practical quick-select buttons, such as "Starred," "Assigned to me," or "Archived," allowed users to narrow down the displayed data volume with a single click. However, the more richly data models are interconnected, the clearer it becomes that simply hiding rows is often no longer sufficient in daily work. Depending on the use case, the exact same data must be bundled, ordered, and viewed from shifting perspectives in completely different ways. That is why we are now taking the next logical step in WebExpress by expanding the previous Quickfilters with entirely new control types and generalizing the entire concept into the new Quickbar. The Quickbar remains right where users are accustomed to finding it, yet functionally grows far beyond mere filtering. Going forward, it will unite four central control mechanisms under a uniform and intuitive ...

WebExpress – Dimensions of a Web Framework

Image
A web framework is not built on good code alone. Behind a platform like WebExpress lies a broad range of development disciplines that collectively determine its quality, maintainability, and long-term success. While users often see only the visible features, the real challenge lies in balancing architecture, security, performance, and developer productivity. At its foundation is clean, consistent, and sustainable code. Software must do more than work correctly. It must remain understandable, extensible, and maintainable over time. Clear architectural principles, consistent coding standards, high readability, modular design, reusable components, and code-centric documentation form the basis for continuous growth. In a framework that evolves over many years, code quality ultimately determines whether new functionality can be implemented in days or requires months of effort. Security must be an integral part of the framework from the very beginning. It cannot be treated as an afterthough...

WebExpress 2.0.0‑alpha – Why execCommand is Dead

Image
The development of modern rich-text editors on the web has undergone a fundamental paradigm shift. The native browser API document.execCommand() is obsolete, generates inconsistent HTML, and prevents precise control over the document flow. Frameworks like Tiptap, ProseMirror, or Lexical demonstrate that the future lies in a strict separation of data and representation. WebExpress is now undergoing a complete migration from error-prone DOM manipulation to a deterministic, state-based approach combined with a modern, block-based layout system. The core of this new architecture is a central JavaScript object in JSON format that defines the document as a tree structure known as an Abstract Syntax Tree. A document consists of a root node whose children are either structural layout blocks or content-based text elements. Each node has a type, optional attributes like formatting, and an array of child nodes. A text section is declared as a paragraph node whose children in turn are text nodes w...

WebExpress 2.0.0‑alpha – The End of Server Sessions

Image
WebExpress currently uses a stateful session model in which a server side session is created for each client. The session ID is stored in a cookie and transmitted with every request. Initially, the session is used solely to recognize the client and is only associated with an identity after successful authentication. User, role, and permission information then becomes available within the session context. As a result, the identity is bound to the session rather than the other way around. This architectural model clearly separates the technical client context from the user identity and has proven itself in numerous applications. However, as requirements for scalability, containerization, and distributed cloud infrastructures continue to grow, this approach increasingly reaches its limits. Because authentication information is tied to the server side session context, session state must be maintained persistently and synchronized across multiple instances. This increases infrastructure co...

WebExpress 2.0.0‑alpha – Native Certificate Management

Image
One of the strengths of WebExpress has always been its ability to operate efficiently across a wide range of environments, from small Raspberry Pi installations to larger server deployments. HTTPS support based on Kestrel has been part of the framework for years, and certificates can already be configured directly on endpoints using PFX files. This simple and reliable approach has served WebExpress well, particularly in lightweight and self hosted environments. As the platform continues to evolve, certificate management is becoming increasingly important. Today, HTTPS endpoints are directly coupled to certificate files defined in configuration. While this works perfectly for smaller deployments, it limits future scenarios such as automated certificate management, centralized certificate stores, cloud integrations, and dynamic multi domain hosting. To address these challenges, WebExpress is introducing a native certificate management infrastructure. The objective is to treat X.509 ce...

WebExpress 2.0.0‑alpha – The End of config.xml

Image
In modern software development with .NET the way we configure applications has changed fundamentally. While XML-based configuration files like a config.xml were the undisputed standard in the classic framework era the stage today belongs to cross-platform and cloud-native approaches. For a lightweight web server framework like WebExpress the switch to the modern appsettings.json offers an excellent opportunity to further increase performance while drastically simplifying handling for developers. The theoretical basis for this change is founded on the modern .NET Configuration Provider model which no longer views settings as rigid documents but as a flexible key-value store that can be dynamically fed from a wide variety of sources. The greatest advantage of this JSON-based configuration lies in its native and seamless integration into modern container environments like Docker. When WebExpress runs in a Docker container developers often need to control individual parameters such as port...

WebExpress 2.0.0‑alpha – From Sketch to Framework

Image
The way the framework is developed has changed fundamentally and now follows the philosophy of "from sketch to framework". While the focus was previously on manual programming, implementation is now handled entirely by Claude Code. The emphasis has shifted toward the conceptual design of ideas, where a simple mental or visual sketch serves as the direct starting point for new, production-ready components. The subsequent implementation, design, documentation, and creation of tutorial pages are fully automated from this initial concept. Compared to the traditional approach, this process is faster, more precise, more uniform, and more consistent. The human role has evolved into that of a system architect who defines requirements, provides the initial sketch, and steers the architectural direction. As a current use case, a static control ( ControlFormItemInputDnf ) for WebUI and a dynamic REST control ( ControlDataFormItemInputDnf ) for the WebApp are being implemented. This mirr...

WebExpress 2.0.0‑alpha – Custom SVG Icons

Image
The transition from Font Awesome to a fully custom SVG icon system represents a significant technological advancement in the evolution of WebExpress. Font based icons were functional but inherently limited because they remained bound to properties such as font size and color. This was sufficient for simple symbols yet restrictive for complex interfaces. By adopting SVG icons these limitations disappear entirely because SVGs exist as independent DOM elements that can be manipulated through the full range of CSS and JavaScript. This unlocks design capabilities that are practically unattainable with font icons. Path structures can be controlled with precision gradients can be defined natively and animations using stroke dasharray or stroke offset enable subtle micro interactions that make interfaces clearer and more expressive. The move to SVG also eliminates the licensing dependency that comes with third party icon fonts. Font Awesome is a powerful library but it introduces an external l...

WebExpress 2.0.0‑alpha – View, State and Service, Part II: From Pro‑Control State to ViewStated Contexts

Image
An update to the earlier post about the View, State, and Service architecture. When the View, State, and Service architecture was introduced, it replaced scattered state, direct DOM manipulation, and implicit service calls with a clear unidirectional data flow. Each control gained an explicit state object, a typed service descriptor, and a predictable path from initialization through user interaction to re‑rendering. The model worked well and was written entirely in C#. The previous post showed how a list evolved from a handful of scattered properties into a single, well‑structured definition. As the architecture rolled out across control families, a deeper boundary became visible. The state was clean but still belonged per control. Each control seeded its own state island, resolved its own service, and loaded itself on mount. Two controls on the same screen showing the same data fetched it independently. There was no natural way for one control to trigger a re‑render in another when ...

WebExpress 2.0.0‑alpha – Introducing the New View–State–Service Architecture

Image
With the new View‑State‑Service architecture, WebExpress enters a phase in which client‑side behavior becomes clearer, more predictable, and better structured than ever before. The motivation behind this step is straightforward. The previous mechanisms, scattered state, direct DOM manipulations, and implicit service calls, have worked well over the years but reach their limits once more complex interactions, multiple dependent components, or reusable patterns emerge. The new architecture establishes a clear foundation that remains consistent for both simple controls and sophisticated applications, while being authored entirely in C#. At its core, the model separates the three responsibilities that repeatedly occur in modern web applications. The state holds all data and UI flags of a control and serves as the single source of truth. The view is a pure function of that state and generates the DOM without its own side effects. The service encapsulates all network access and returns norm...

WebExpress 2.0.0‑alpha – A new beginning for the WebExpress versioning scheme

Image
Versioning is far more than a technical formality, because it provides orientation, makes developments traceable, and shows how a project moves within the tension between stability and progress. For WebExpress, this goal has not always been easy to achieve in recent months, as the project has been undergoing an intensive phase of restructuring. Although WebExpress was officially at version 1.8.0, that number hardly reflected the actual state of the system. Many core components were rethought, replaced, or fundamentally redesigned, and the architecture evolved faster than a traditional scheme could capture. To restore clarity, the versioning was reset. The current version 0.0.11‑alpha marks this new beginning and makes it clear that WebExpress remains in an active, experimental development phase. New features are emerging, existing ideas are being refined, and the foundation is gradually gaining stability. At the same time, this version number signals that the current scheme is only a t...

WebExpress 0.0.11‑alpha – Why WebExpress Moves from Static Values to Render-Time Delegates

Image
Web applications are inherently multi‑user systems that must respond to different contexts simultaneously, which made the need for a more flexible, render‑time evaluated property model increasingly clear. The transition from value‑based to delegate‑based properties in WebExpress represents a fundamental architectural advancement that changes how controls obtain their values. Until now, properties were assigned fixed values during control initialization, which worked well as long as those values were static. However, as soon as values needed to be derived from context at render time, such as from the current request or other dynamic runtime conditions, the previous model reached its limits. In these situations, developers had to derive custom control classes and override the render function to compute the required values during the rendering process. This approach introduced additional complexity and reduced reusability. With version 00.11‑alpha, WebExpress introduces a new property m...

WebExpress – Actions and Bindings Explained

Image
A modern application doesn’t thrive on appealing interfaces alone, but above all on smooth interactions and a clear, maintainable flow of data. This is exactly where Actions and Bindings in WebExpress come into play. Actions allow functions to be triggered in a targeted and structured way, while Bindings ensure that state automatically arrives where it is needed. Together, they solve two fundamental challenges that appear in almost every project: responding cleanly to user interactions without getting lost in event handling, and keeping data synchronized between controls without requiring components to know about each other. This interplay creates a system that remains both flexible and easy to understand, forming the foundation for efficient and maintainable applications. Actions are executable functions that can either be provided by WebExpress or registered by the user. They are used to react to interactions and initiate specific processes. WebExpress distinguishes between primar...

WebExpress 0.0.10-alpha – An Intelligent Prompt Control for Complex WQL Queries

Image
The development of our new WQL prompt control began with the ambition to make the input of complex filter expressions as direct and efficient as working in a terminal. The goal was to create an input environment that feels familiar, responds quickly, and at the same time respects the specifics of WQL syntax. This includes a suggestion system that offers matching attributes, operators, and values while typing, displaying them clearly in the hint area below the input field. The most likely continuation appears as plain text, complemented by a list of alternative values, limited to a maximum entries for clarity. Suggestions can be navigated using the arrow keys, while the Tab key can be used to accept a selected completion. To ensure that suggestions remain up to date and performant, they are provided through a REST interface that adheres to the defined WQL syntax. To avoid unnecessary network load, requests are triggered only after a short input delay. This debouncing prevents a request ...