How a Component's viewType Resolves to a Renderer
Every component a MIB page renders is chosen by one string — its viewType (the
COMPONENT_VIEW_TYPE config on the template component). This page explains how that
string is emitted by the BFF and resolved to a React renderer by the shell, why the
set of "core" viewTypes is version-specific, and how to tell when a binding will
silently render nothing.
Understanding this is the difference between "I bound my custom component and it works" and "the page shows this component is being developed and is not available yet."
1. The BFF emits the viewType (a free string)
When the display BFF (MibServer3) renders a page, it decides each component's emitted
type in DisplayWorkflow.ResolveComponentType — three tiers, first match wins:
COMPONENT_VIEW_TYPE(the template-component config) — returned verbatim if set.- else
IComponentTypeProvider.GetComponentType()— if the backend component implements it. - else a class-name heuristic: the class's last segment, lowercased, with a trailing
componentstripped (e.g.DmmCwfComponent→dmmcwf).
The emitted type is therefore a free string, not a lookup into any registry. The BFF
loads the backend class by ClassName+AssemblyName (reflection); "core vs custom" on the
backend is just the assembly prefix (MediaiBox.Cms.FrontEnd = built-in). Nothing on the
backend constrains the viewType to a known set.
2. The shell resolves it (core wins over federation)
The React shell (MibFrontEnd) resolves the emitted type against its own core map
(@agilecontent/core-components, src/components/index.ts). From buildComponents:
isCoreComponent(c) = Object.keys(coreComponents).includes(c.type) // is the type a core-map KEY?
buildComponents(components) => components.map(c =>
isCoreComponent(c)
? [c, coreComponents[c.type]] // CORE — federation is NEVER consulted
: [c, federation.customComponents[c.type] ?? null]) // else the federated remote, or null
Consequences that trip people up:
- Core shadows federation. If a viewType is a core-map key, the shell renders the core entry and ignores any remote that exports the same key. A custom remote renderer bound to a core viewType is dead code.
- A
nullcore entry renders nothing. Several keys are registered asnull(see §4) — the shell renders nothing, and because core wins, a remote cannot rescue them. - A non-core key goes to federation, and if no remote exports it →
null→ "this component is being developed and is not available yet."
3. The core map is version-specific (this is the trap)
coreComponents is not fixed — the shell adds entries over releases:
| viewType | in the core map since |
|---|---|
list, form, relatedList, + the null tier (§4) |
2023-10 (original) |
message / editablelist |
2023-12 / 2024-01 |
contentcriteria |
2024-08 |
dmm |
2024-09 |
permissionList |
2024-10 |
asyncRelatedList |
2025-07 |
epg |
2025-08 |
treeList |
2026-05 |
So the same binding renders differently on different shell versions. A page that binds
COMPONENT_VIEW_TYPE = dmm renders the core DMM widget on a shell ≥ 2024-09, but on an
older shell dmm isn't a core key → it falls to federation → if no remote exports dmm,
it renders "being developed." A custom backend (GVP…DmmCwfComponent) bound to dmm
expecting its own renderer is shadowed the moment the shell adds core dmm.
Because the deployed shell's core map isn't visible from a repo checkout (only the custom remotes are), tooling cannot know which recent viewTypes a given deployment renders from core. Treat the version-dependent additions as "prove it renders."
4. The null tier — registered but renders nothing
These keys exist in the core map with a null value. They render nothing on every shell,
and — because core shadows federation — a remote export can't override them:
htmlrender, orderedrelatedlist, quickupload, relatedautocomplete, relatedform,
simplerelatedlist
A binding on one of these is always dead in React. Use a different viewType (a real core one, or a custom key your remote exports).
5. How mib inventory --bindings reports this
mib inventory --bindings classifies every binding's viewType → renderer:
core-native— an always-present core primitive (list,editablelist,form,relatedList,asyncRelatedList,message,contentcriteria), anull/backend-typed viewType, or a viewType this deployment declares (see below).remote-export— a scanned custom remote exports it.unresolved(drift: true) — neither of the above: the shell renders "being developed." This is the signal for a dead binding.
Because the tool can't read the deployed shell's core map, a deployment on a newer shell that
legitimately renders dmm/epg/permissionList/treeList from core declares them in
setup.yaml so they aren't flagged:
frontend:
remotes: [ ... ]
coreViewTypes: [ dmm, epg ] # this shell renders these from core → don't flag as unresolved
Rules of thumb
- Custom renderer → use a custom viewType your remote exports, never a core key (core
shadows your remote). Confirm the export shows as
remote-exportinmib inventory --bindings. - A custom backend on a core viewType is fine for the generic renderers (
form,list,relatedList, …): the backend shapes the data, core renders it. It is not fine for a viewType your remote was meant to render — core will shadow it. unresolvedin--bindings= a dead binding on the deployed shell. Bind the remote export, fix the viewType, or (if the shell really does render it from core) declare it insetup.yaml frontend.coreViewTypes.
Grounded in MibServer3@releases/7.0 (DisplayWorkflow.ResolveComponentType) and
MibFrontEnd@master (core-components/src/components/index.ts, buildComponents,
isCoreComponent).