on 2012 Oct 03 3:33 PM
Perhaps this is perfectly normal as its been a while since I played with web development but I will ask anyway:
Basically I have a REST servlet running using jersey and I have connected it to a simple SAPUI5 table. Now in debug mode I can modify the servlet (java) part and the server updates but this doesn't appear to be the case for the HTML (static) part. I want to avoid using JSP or servlets for the client rendering as I want a pure html2rest architecture.
Note I don't need to debug the html, I just want it to update as this slows down my development a little as I need to stop/start my server, re-authenticate etc.
thanks,
peter
Hi Peter,
Your observations are correct. Indeed, changes in the static content requires redeployment of the application and the debug mode does not help.
I recommend that you use the Local Test Server when you do frequent changes in the HTML code. Redeployment on the Local Test Server does not require restart - the turnaround time is much faster compared to the cloud where redeployment needs restart of the VM. However, it is still a redeployment and you app is restarted, the session is lost and you need to authenticate again.
Alternatively, you can use the web development tools in browser like Firefox and Chrome, which allows you to change the code of the displayed HTML page and see these changes instantly in the browser. When you are satisfied you can copy-paste the changes from the browser's dev tools back to Eclipse and do a real redeployment for validation.
Hope this helps,
Kaloyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have much experience, but I briefly tried the built-in tools in Firefox and Chrome.
In Firefox: from the main menu > Web Developer > Inspect.
In Chrome: right-click on the page > Inspect element.
Additionally, you can try the Firebug add-on for Firefox.
You can also try looking for help in the SAPUI5 corner in the Dev Center: http://scn.sap.com/community/developer-center/front-end. There are the masters of HTML and JavaScript.
the turnaround time is much faster compared to the cloud where redeployment needs restart of the VM. However, it is still a redeployment and you app is restarted, the session is lost and you need to authenticate again.
isn't there a hot deploy in the cloud?
Does your comment mean that each app has its own separate VM?
D.
isn't there a hot deploy in the cloud?
Not (yet).
Does your comment mean that each app has its own separate VM?
Well, kind of... you can also deploy multiple apps into one VM by using the command line tool as explained here:
"If you want to deploy more than one Web application on the same VM, place all WAR files in the same folder and execute the deployment with this source."
User | Count |
---|---|
69 | |
13 | |
11 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.