Food for thought -- need a way to deploy JS only apps [message #759080] |
Sat, 26 November 2011 00:05  |
Eclipse User |
|
|
|
I developed an application in EDT that did not contain any Java-targeted parts. It took me a while to figure out how to deploy this application to a standard web server (as opposed to an application server such as Tomcat).
With RBD and EGL CE this task was somewhat less troublesome since the generated JavaScript ended up on a single HTML file. The EDT model of separate JS files and a "loader" mechanism that is based on a web root, etc. complicates matters.
I just wanted to throw out that since there is nothing about a JS-only application that calls for a web application server you might think about an option to deploy JS-only applications to a static web project. (Or am I missing something and this is already possible?)
I think you would increase your audience for EDT since EGL is a great way to write Rich UI code and not all rich applications rise to the level of requiring deployment to a full blown web application server.
--Dan
|
|
|
Re: Food for thought -- need a way to deploy JS only apps [message #759256 is a reply to message #759080] |
Mon, 28 November 2011 01:11   |
Eclipse User |
|
|
|
Hi Dan,
EDT introduced new design in Rich UI deployment, instead of putting everything into a big HTML, a small HTML will be created as the initial start-up, Rich UI runtime and dependent widget JS will be downloaded by this initial HTML at runtime. As a side effect, deploying to a Web server (instead of Application Server) is not as easy as in RBD. I just created Bug 364925 to track this enhancement.
In 0.7, to deploy an RUI application to a Web Server, please do the following
1. Use the egldd file to deploy to a dynamic web project, choose Tomcat or whatever works for you as the target runtime.
2. Make below changes to the generated HTML in the target project
--a. set your context root into egl__contextRoot="....";
--b. Find xmlhttp.open( 'POST', currentFile, false ); in the bottom of the HTML file, replace 'POST' with 'GET'
3. Deploy everything in <deploy project>/WebContent into the Web Server
[Updated on: Mon, 28 November 2011 01:13] by Moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26617 seconds