How to write a model in DXA JAVA for a schema having component link? The component link is generic and not based on any particular schema. Can this be achieved?
Adding some more details:
I have to display four Blocks (having links) on LHS side. On clicking on the LHS link, a corresponding section is diplayed on RHS side. The RHS content is different for each LHS link. For eg. 1st LHS link displays a form on RHS, 2nd Link displays a FAQ block on RHS and so on. So basically the views on RHS change on selection of LHS link.
I am doing this by creating one component which has fields like:
- LHS Link [text]
- RHS Component Link
Can this be achieved if I restrict my component links to only 4 schemas? In this case, how to write a model for these 4 different types of component links?