View Full Version : Is it possible to run both Laszlo 1 and 2 in the same webapp?
hutch
03-07-2004, 04:43 AM
We have a fairly good sized application that uses laszlo 1 in production. There are a number of changes and additions in the works.
I'd like to know if it is possible to run both laszlo 1 and 2 in the same webapp. This would allow us to phase in the use of laszlo 2.
antun
03-07-2004, 08:17 AM
In the same webapp or the same servlet container? You can definitely run both in the same servlet container, but since the LPS itself is a webapp (servlet) then by definition both versions can't be run as a single webapp.
You can change the version of an app in LPS 2.0 to compile to 1.0 by setting the lpsversion attribute in the <canvas>.
-Antun
sfarrow
03-09-2004, 10:41 AM
I gave your suggestion a try and can see no difference when setting lpsversion="1.0.3" or lpsversion="1.0" on the <canvas>. According to the documentation this attribute is readonly.
Any suggestions?
antun
03-09-2004, 12:22 PM
Can you explain what you mean when you say that you see no difference?
-Antun
sfarrow
03-09-2004, 01:16 PM
I could see no difference in presentation or behaviour of the application when setting lpsversion to different settings.
I tried using the version attribute instead setting it to "1.0". This did affect the presentation somewhat and the console output indicated that a different version of the compiler was used:
The canvas is declared with version="1.0". This version of the LPS compiles version 1.1 files. This applicaton may not behave as intended when compiled with this version of the product. It is recommended that you run it in debug mode and fix all compiler and debugger warnings, and that you read the migration guide in the developer documentation.
The application still does not present or behave as it does with lps 1.0.3. There are warnings on the console and to the debugger window complaining of deprecated syntax, etc. I will attempt to clean some of this up to see if there is any improvement.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.