I’ve been studying the screen rendering code in my attempts to test the qvt2 code. I have some test code:
<widgets>
<container id="app-root" >
<screenLayout>
<headerLayout>
HEADER
</headerLayout>
<pageLayout>
</pageLayout>
<footerLayout>
FOOTER
</footerLayout>
</screenLayout>
</container>
</widgets>
I have a custom ftl file to handle the processing which includes the DefaultScreenMacros.qvt2.ftl file. But in order to use that qvt2 ftl file, I need to call it with ‘?renderMode=qvt2’ in the url. This is because ScreenRenderImp has at line 396:
if (renderMode == null || renderMode.length() == 0) renderMode = "html"
Wouldn’t it be better to have a ScreenRenderImpl.getDefaultRenderMode method so that the URL doesn’t have to be touched if the whole app is going to be run in say the qvt2 mode?