Skip to Content

validator not working for "Developing Web Apps with SAPUI5"

Presently, I just completed unit 5 of week 0 on the SAPUI5 course, see https://open.sap.com/courses/ui51.

The exercise here indicates that the developer is to add this line of code, then run the application in the SAP Web IDE:

<script src="https://sap.github.io/openSAP-ui5-course/Validator.js"></script>

This I have done, but when I run the web app there is not blue validator icon as indicated in the video. Does anyone have any suggestions?

Here is the full code of index.html:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>openSAP - Developing Web Apps with SAPUI5</title>
<script
id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
data-sap-ui-compatVersion="edge"
data-sap-ui-preload="async"
data-sap-ui-resourceroots='{
"opensap.myapp": "./"
}'>
</script>
<script src="https://sap.github.io/openSAP-ui5-course/Validator.js"></script>
<script>
sap.ui.getCore().attachInit(function () {
// workaround begin: start a mock server
/*
jQuery.sap.require("sap.ui.core.util.MockServer");
var oMockServer = new sap.ui.core.util.MockServer({
rootUri: "/destinations/ES4/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/"
});
oMockServer.simulate("metadata.xml", {
bGenerateMissingMockData: true
});
oMockServer.start();
*/
// workaround end
new sap.ui.core.ComponentContainer({
name : "opensap.myapp"
}).placeAt("content");
});
</script>
</head>
<body id="content">
</body>
</html>
Add comment
10|10000 characters needed characters exceeded

  • Have the same problem 3 years later. Just added the validator to my web app, right in the beginning of the course. Doesn't get a result. This is taken directly out of the exercise document provided: "openSAP_ui5_Week_0_Unit_5_AGACE_Exercise.docx"

    When I look in the developer tools I see: "Failed to load resource: the server responded with a status of 404 ()"

    My webapp is *really* simple, so I was pretty disheartened that it doesn't work at this level of simplicity.

    <!DOCTYPE html >
    <html>
    	<head>
    		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    		<meta charset="UTF-8">
    		<title>OpenSAP - Developing Web Apps with SAPUI5</title>
    		<script id="sap-ui-bootstrap" src="...resources/sap-ui-core.js" ...>
    		</script>
    		<script src="https://sap.github.io/opensap-ui5-course/Validator.js">
    		</script>
    	</head>
    	<body>
    		<p>Hello World</p>
    	</body>
    </html>
    

0 Answers