Release : 8.6
Component : ECLIPSE WEB VIEW
1. Support tested provided model using browser with Developer option (F12) enabled.
The Console tab shows Warning message:
"[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience."
However, that message turned out not to be significant.
2. The HTML Text for Web View must be XHTML-compliant:
CA Gen 8.6 > Developing > Designing > Use Gen Studio > Work with Web View > Use Existing Models in Web View > HTML Control and HTML Text
Using the XHTML validation steps on the above link create an XHTML document (.html file) with body from the HTML Text field. Run that file through the W3C Markup Validation Service http://validator.w3.org to correct any errors.
3. After ensuring XHTML compliance, the custom html still does not display in Web View application.
The other key factor is that information from an HTML Text does not display on the UI because that control is not placed on the UI when it is created at design time. So instead an HTML Control needs to be used for Web View because that control is placed on the UI at design time.
The "no UI" limitation for HTML Text properties is also documented here:
CA Gen 8.6 > Developing > Designing > Using the Toolset > Understanding Toolset > Diagrams > Design > Diagrams > GUI Design > Navigation Diagram Overview > Using HTML > Web Authoring Overview > HTML Mode > HTML Text Properties Dialog
That is in comparison with HTML Control properties documented here:
CA Gen 8.6 > Developing > Designing > Using the Toolset > Understanding Toolset > Diagrams > Design > Diagrams > GUI Design > Navigation Diagram Overview > Using HTML > Web Authoring Overview > HTML Mode > HTML Control Properties Dialog
For Web Generation, it is confusing that both an HTML Control and HTML Text will display as expected on the UI.
Web Generation is embedding the HTML text into the HTML page and is hence able to show it in the UI. However, it still requires some luck to see this every time based on the complexity of the UI and the order of placement. The HTML Text would sometimes be placed on the UI while other times may be overlapped with others and may not be easy to correct the position of the HTML Text because it does not have any positional information. Therefore even though Web Generation displays the HTML Text information on the UI it is advised to always use an HTML Control for the UI otherwise unexpected behaviours may occur i.e. sometimes it will show up while sometimes it may get placed beyond the window/overlapped etc.
4. In summary the Web View application needs to use XHTML compliant html inside an HTML Control instead of an HTML Text control.