5 October, 2012 15:00:00 Miguel Calvo English XPages | Comentarios (3)
UPDATE: Solved the problem by setting preload="true" in the appPage properties
Sometimes in XPages development you have to encapsulate in a customControl both design and resources. For a project, I'm trying to encapsulate in a customControl the panel to show a Google Map plus the logic needed in order to make it work. This customControl should be reusable anywhere without caring for JS or initialization logic.
Although this is working fine with XPages desktop browser development, it doesn't work it you are using the mobile controls included in UpgradePack 1.
NOTE: This is a simplified example.
This is my cc ccJS with JS resources and a panel.
Embedding this in an XPage is going to work fine, but if you embed this in a mobile app then the resources block gets filtered out
This XPage rendered in a browser doesn't download the javascript.
One solution could be to split the customControl in two and separate the resources files from the panel...
..but this is not the best approach in designing customControls and it would be different from what is working in desktop browser development.
Thanks Tim, nice trick. That solved the problem.
Thanks Tim, Thanks Miguel Angel
Have you tried setting preload to true on the appPage?