I am relatively new to eclipse and javascript development in general and I have been trying to set up a dev. environment for UI5 following what I thought were excellent instructions in this blog post:
How to install a basic development environment for SAPUI5
I believe I've done everything correctly. I created a new UI5 project, and when I run index.html through Tomcat in eclipse, an empty page appears. I added the following code to my view:
createContent : function(oController) {
var myButton = new sap.ui.commons.Button("btn");
myButton.setText("Hello World");
myButton.attachPress(function(){$("btn").fadeOut();});
return myButton;
}
When I 'run' the application I expected the view to be loaded into the index.html page and my button to show up in the browser window. However, I get a blank page.
I didn't see any errors, but I saw the following warnings in various places in the console window, but I really am not sure how to resolve them (or even if I need to):
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:UI5HelloWorld' did not find a matching property.
WARNING: An error occured when accessing the /META-INF/ui5.properties! Reason: The /META-INF/ui5.properties could not be found!
WARNING: Could not find property "x-sap-ui5-BuildTimestamp" in ui5.properties or MANIFEST.MF or the value is not valid! Using System.currentTimeMillis as cachebuster timestamp.
WARNING: Origin 'null' refused by config ([])
Any ideas what I am doing wrong or where I need to look?
Thanks,
--Jason