Skip to Content
0
May 25, 2018 at 11:03 AM

sapui5 eclipse code not running in web priview and browser both.

159 Views Last edit May 24, 2018 at 08:53 PM 2 rev

Hi I am building my first Ui5 application in eclipse.I have placed a button but I don't see any output in the brower / Tomcat / or web preview.

Here is my code.
Screen is blank. There should be a button right !?

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- to run the app in IE8 -->
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<!-- to run the app in other browsers -->
<!-- bootstrap is loaded when index.html is called -->
<script src="resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons"
data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required --> <script>
var bt = new sap.ui.commons.Button({
text="press me"
});
bt.placeAt("content") ;
</script> </head>
<body role="application">
<div id="content"> </div>
</body>

Attachments

web-privew.png (17.0 kB)