Application Name: Reference application Version Number: 2.6
Question: I’m building a custom module using the UI framework and we’re kind of new at this. It would be great if you can guide me over with the following things:
- How are the controllers linked to the respective view pages(.gsp).
- Do we need to explicitly specify about the relation between the controller and the view in some config file?
- How do I pass data or parameters from controller to the view? Currently adding it through model attribute, which ain’t working for me.
Trials from my end:
- I tried passing hard coded values to the view form controller, but just got " could not find property ‘recentVisitsWithLinks’." error for each and every parameter am trying to send through controller.
- Next I hard coded the values for the same params in the view(.gsp) and it works fine. But, this undoubtedly ain’t the right way to display data.
- Tried referring to different classes from appframework and coreapps module so as to see the conventional way, but got almost the same code.
- I’m able to display messages from other modules using “${ui.message(“coreapps.none”)}”.
Let me know if you need any further details!