We have a view model with a property as a multi valued Linked Component (Linked to a single Schema). We have created the models like:
@SemanticEntity(entityName = "schemarootname", vocabulary = SDL_CORE, prefix = "", public_ = true)
public class MainModel extends AbstractEntityModel {
private String title;
private List<componentlinkedmodalclass> items;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public List<componentlinkedmodalclass> getItems() {
return items;
}
public void setItems(List<componentlinkedmodalclass> items) {
this.items = items;
}
}
@SemanticEntity(entityName = "schemarootname1", vocabulary = SDL_CORE, prefix = "", public_ = true)
public class componentlinkedmodalclass extends AbstractEntityModel {
private String title;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}
Get and Set method is defined in the model. In the schemas.json file I can see semantic definition for main schemas like:
{
"Id": 36661,
"RootElement": "schemarootname",
"Fields": [{
"Name": "title",
"Path": "/schemarootname/title",
"IsMultiValue": false,
"Semantics": [{
"Prefix": "tri",
"Entity": "schemarootname",
"Property": "title"
}],
"Fields": []
}, {
"Name": "items",
"Path": "/schemarootname/items",
"IsMultiValue": true,
"Semantics": [{
"Prefix": "tri",
"Entity": "schemarootname",
"Property": "items"
}],
"Fields": []
}
},
However this field is not binding in the view model.
I have tried to debug the issue by just having a single field in the modelclass without any luck. I am using DXA Java 1.6 with SDL Tridion 2013 SP1. To simplify the question I have removed other fields from model and semantics. Can anyone suggest what I am missing.