Skip to content

dd4t model doesn't map with @ViewModel (viewModelNames = {"generic-teaser"} #104

Description

@vishal-agr

We don't want to map our model with RootElementName.

  1. We have one schema with RootElementName is "Article".
  2. We created one model name GenericTeaser and mapping with view model name like below.

@viewmodel (viewModelNames = {"generic-teaser"}, setComponentObject = false)
public class GenericTeaser extends TridionViewModelBase {

  1. We have one view to render generic-teaser.jsp
    It seems not possible to map viewname ( example generic-teaser.jsp) to model (GenericTeaser).

Is it possible ? Or We are doing something wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions