Annotation Interface DetailViewTemplate


@Target(TYPE) @Retention(RUNTIME) public @interface DetailViewTemplate
Declares that the framework should generate a detail view for the annotated entity at runtime.
  • Element Details

    • path

      String path
      Resource path to the Freemarker XML descriptor template.
      Default:
      "io/jmix/flowui/view/template/detail-view.ftl"
    • templateParams

      String templateParams
      JSON object with additional template parameters.
      Default:
      ""
    • parentMenu

      String parentMenu
      Parent menu item id. If empty, the framework does not create a menu item.
      Default:
      ""
    • viewId

      String viewId
      View id. If empty, the framework uses <entityName>.detail.
      Default:
      ""
    • viewRoute

      String viewRoute
      Base view route. The framework always appends /:id. If empty, the framework derives the base route from viewId.
      Default:
      ""
    • viewTitle

      String viewTitle
      View title. If empty, the framework uses <entityName>.

      If the value starts with msg://, it is treated as a message reference and resolved through the Messages bean. Both the full format msg://group/message_id and the brief format msg://message_id (resolved against the entity package) are supported.

      Default:
      ""
    • editedEntityContainerId

      String editedEntityContainerId
      Edited entity container id used by the template and the generated controller.
      Default:
      "entityDc"