We are using DXA for Java.
We are trying to map a field that in Tridion is a Component Link field. Debugging the code, we see that is trying to resolve the component Link like a URL using ComponentLinkFieldConverter Class. But we want to map all the field in the linked component as data for use in the jsp of th entity.
We found this article: http://blog.trivident.com/2013/12/improving-link-resolving-in-dd4t/ But is talking about DD4T and I don't know if a similar option exists in DXA.
We checked the page json and it has all the information of the component and all the information of the linked Component.
How can we change the treatment for the ComponentLink?
18:19:17,956 ERROR [com.sdl.webapp.common.impl.mapping.SemanticMapperImpl] (http-localhost/127.0.0.1:8080-1) Exception while getting field data for: private com.tms.tms4web.baseline.common.model.entity.text.TextTitleSubDescrip com.tms.tms4web.baseline.common.model.entity.FeaturedContainer.featuredContainerText: com.sdl.webapp.dd4t.fieldconverters.UnsupportedTargetTypeException: Unsupported target class: com.tms.tms4web.baseline.common.model.entity.text.TextTitleSubDescrip
at com.sdl.webapp.dd4t.fieldconverters.ComponentLinkFieldConverter.createComponentLink(ComponentLinkFieldConverter.java:56) [webapp-dd4t-1.0.0.jar:1.0.0]
at com.sdl.webapp.dd4t.fieldconverters.ComponentLinkFieldConverter.getFieldValues(ComponentLinkFieldConverter.java:35) [webapp-dd4t-1.0.0.jar:1.0.0]
at com.sdl.webapp.dd4t.fieldconverters.AbstractFieldConverter.getFieldValue(AbstractFieldConverter.java:15) [webapp-dd4t-1.0.0.jar:1.0.0]
at com.sdl.webapp.dd4t.DD4TSemanticFieldDataProvider.getFieldData(DD4TSemanticFieldDataProvider.java:83) [webapp-dd4t-1.0.0.jar:1.0.0]
at com.sdl.webapp.common.impl.mapping.SemanticMapperImpl$1.doWith(SemanticMapperImpl.java:68) [webapp-common-impl-1.0.0.jar:1.0.0]
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:577) [spring-core-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:554) [spring-core-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at com.sdl.webapp.common.impl.mapping.SemanticMapperImpl.createEntity(SemanticMapperImpl.java:47) [webapp-common-impl-1.0.0.jar:1.0.0]
at com.sdl.webapp.dd4t.EntityBuilder.createEntity(EntityBuilder.java:80) [webapp-dd4t-1.0.0.jar:1.0.0]
at com.sdl.webapp.dd4t.PageBuilder.createPage(PageBuilder.java:101) [webapp-dd4t-1.0.0.jar:1.0.0]