Package io.jmix.flowui.view.template
Annotation Interface ReadViewTemplate
Declares that the framework generates a read view for the annotated entity at runtime.
The generated view shows the entity and cannot edit it. It is registered as the entity's primary read
view, so read view resolution finds it: the read view navigator, a list_read action and an
entity_read action all open it. Its route requires an entity id, so the view always opens for an
existing instance. Note that the generated list view carries no list_read action of its own.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionResource path to the Freemarker XML descriptor template.Shown entity container id used by the generated controller.JSON object with additional template parameters.View id.Base view route.View title.
-
Element Details
-
path
String pathResource path to the Freemarker XML descriptor template.- Default:
"io/jmix/flowui/view/template/read-view.ftl"
-
templateParams
String templateParamsJSON object with additional template parameters.- Default:
""
-
viewId
String viewIdView id. If empty, the framework uses<entityName>.read.- Default:
""
-
viewRoute
String viewRouteBase view route. The framework always appends/:id/read. If empty, the framework derives the base route fromviewId.- Default:
""
-
viewTitle
String viewTitleView title. If empty, the framework uses<entityName>.If the value starts with
msg://, it is treated as a message reference and resolved through theMessagesbean. Both the full formatmsg://group/message_idand the brief formatmsg://message_id(resolved against the entity package) are supported.- Default:
""
-
readEntityContainerId
String readEntityContainerIdShown entity container id used by the generated controller. As withDetailViewTemplate.editedEntityContainerId(), the stock template declares the container under the default id, so a different value goes together with a custompath().- Default:
"entityDc"
-