I tried as below, Model A:
@Model(adaptables = SlingHttpServletRequest.class)
public class ModelA {
private String title;
@inject
Resource resource;
ModelB modelb;
. @PostConstruct
public void init() {
modelb = resource.adaptTo(ModelB.class);
}
}
Model B:
@M...