Revision: 2989
Author: seba.wagner
Date: Sun Feb 14 03:20:19 2010
Log: Update LPS
http://code.google.com/p/openmeetings/source/detail?r=2989
Modified:
/trunk/singlewebapp/WebContent/WEB-INF/lps/config/lps.xml
/trunk/singlewebapp/WebContent/WEB-INF/lps/config-deploy/lps.properties
/trunk/singlewebapp/WebContent/WEB-INF/lps/misc/lzx-autoincludes.properties
/trunk/singlewebapp/WebContent/WEB-INF/lps/schema/lfc.lzx
/trunk/singlewebapp/WebContent/WEB-INF/lps/schema/lzx.rng
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/app-console.xslt
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/app-console_jp.xslt
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/deployment-response.xslt
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/embed-body.xslt
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/embed-body_jp.xslt
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/html-response.xslt
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/html-response_jp.xslt
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/info-response.xslt
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/config/lps.xml Mon Oct 12
05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/config/lps.xml Sun Feb 14
03:20:19 2010
@@ -48,7 +48,7 @@
<!-- See http://jakarta.apache.org/log4j/docs/. -->
<!-- =========================================== -->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j">
- <priority value="ERROR" />
+
<appender name="lps" class="org.apache.log4j.RollingFileAppender">
<!-- ==================================================== -->
@@ -73,12 +73,12 @@
</appender>
<logger name="org.openlaszlo" additivity="false">
- <priority value="ERROR" />
+ <priority value="info" />
<appender-ref ref="lps" />
</logger>
<logger name="org.apache.axis" additivity="false">
- <priority value="ERROR" />
+ <priority value="warn" />
<appender-ref ref="lps" />
</logger>
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/config-deploy/lps.properties
Mon Oct 12 05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/config-deploy/lps.properties
Sun Feb 14 03:20:19 2010
@@ -2,7 +2,7 @@
# LPS properties file for development
#===============================================================================
# * P_LZ_COPYRIGHT_BEGIN
******************************************************
-# * Copyright 2001-2004 Laszlo Systems, Inc. All Rights
Reserved. *
+# * Copyright 2001-2009 Laszlo Systems, Inc. All Rights
Reserved. *
# * Use is subject to license
terms. *
# * P_LZ_COPYRIGHT_END
********************************************************
@@ -106,8 +106,9 @@
mcache.mem.item.max=1000000
# Compiler Media Cache
-# there is no need to ever keep any of these files in memory during
deployment
+# there is no need to keep any of these files in memory
cmcache.mem.size=0
+cmcache.disk.size=20000000
# Keeps script cache small
scache.disk.size=10000000
@@ -123,12 +124,41 @@
rpc.soap.wsdlLoadOption=never
#===============================================================================
-# Warning Messages
-message.license-expiry: The license for the Laszlo Presentation Server
running on \
- %localhost% has expired. Please contact [email protected] to
purchase a new license.
-message.license-over-clients: The Laszlo Presentation Server running
on %localhost% \
- is over its license limits. Please contact [email protected] to
upgrade your license.
+# Compiler parameters
+# Where the LFC lives (relative to HOME)
+compiler.runtime.dir=lps/includes/lfc
+# Default runtime
+compiler.runtime.default=swf8
+# Turn backtraces on in the debugger (slower, off by default)
+# compiler.debug.backtrace=true
+# TODO: Remove after Leopard
+# Safari debugging compatibility (of by default)
+#compiler.debug.safari=true
+# Warn on global assignments (off by default)
+#compiler.warn.globalassignments=true
+# Tell SWF9 external compiler to issue warnings.
+compiler.swf9.warnings=false
+compiler.swf9.execflex=false
+# Tell compiler to catch errors in debug mode
+#compiler.catcherrors=true
+# Sets whether applications compiled make proxied data requests by default
+compiler.proxied=true
+
+# Use the incremental compilation feature of swf9 compiler (experimental)
+compiler.swf9.incremental=false
+# enable the creation and use of script cache
+compiler.scache.enabled=false
+
#===============================================================================
-# Internal use only.
-lfcLibraryName=LFC.lzl
+# i18n locale parameter
+#i18n.locale=ja_JP
+i18n.locale=en_US
+#i18n.locale=
+
+
+# Enable/disable the schema validator for more strict warnings in
compilation
+compiler.validate = true
+
+# The number of entries added to the font metrics table in a swf8 app
+font.advancetable.max.size=256
=======================================
---
/trunk/singlewebapp/WebContent/WEB-INF/lps/misc/lzx-autoincludes.properties
Mon Oct 12 05:50:28 2009
+++
/trunk/singlewebapp/WebContent/WEB-INF/lps/misc/lzx-autoincludes.properties
Sun Feb 14 03:20:19 2010
@@ -46,6 +46,7 @@
basewindow: base/basewindow.lzx
basezoomarea: charts/addon/zoomarea.lzx
bluestyle: base/defaultstyles.lzx
+boxmodel: mixins/boxmodel.lzx
button: lz/button.lzx
camera: extensions/av/camera.lzx
chart: charts/common/chart.lzx
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/schema/lfc.lzx Mon Oct 12
05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/schema/lfc.lzx Sun Feb 14
03:20:19 2010
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?><library version="4.6.1|Production|
branches/4...@14781 (14781)|2009-09-18T12:18:17Z">
+<?xml version="1.0" encoding="UTF-8"?><library version="4.7.1|Latest|
branches/4...@15615 (15618)|2010-02-03T01:37:54Z">
<!--
!!!!!!!! DO NOT EDIT THIS FILE !!!!!!!!
@@ -159,6 +159,7 @@
<attribute name="$lzc$bind_id" type="expression"/>
<attribute name="$delegates" type="expression"/>
<attribute name="$lzc$bind_name" type="expression"/>
+ <attribute name="with" type="string"/>
<containsElements>
<element>attribute</element>
<element>event</element>
@@ -504,28 +505,41 @@
<attribute enum="normal|immediate" name="when" type="string"
value="normal"/>
</interface>
<interface extends="node" name="selectionmanager">
+ <method name="__LZaddToSelection"/>
+ <method name="__LZgetObject"/>
+ <method name="__LZgetSubList"/>
+ <method name="__LZgetView"/>
+ <method name="__LZindexOf"/>
+ <method name="__LZisSelected"/>
+ <method name="__LZremoveFromSelection"/>
+ <method name="__LZselectRange"/>
+ <method name="__LZsetSelected"/>
+ <method name="__LZsetSelection"/>
+ <method name="__LZsplitRange"/>
+ <method name="__LZupdateSelection"/>
<method name="clearSelection"/>
<method name="construct"/>
+ <method name="createRange"/>
+ <method name="destroy"/>
<method name="getSelection"/>
<method name="isMultiSelect"/>
<method name="isRangeSelect"/>
<method name="isSelected"/>
- <method name="makeSelected"/>
<method name="select"/>
- <method name="selectRange"/>
- <method name="toString"/>
<method name="unselect"/>
<attribute name="sel" type="string"/>
<attribute name="toggle" type="boolean"/>
</interface>
<interface extends="selectionmanager" name="dataselectionmanager">
+ <method name="__LZgetObject"/>
+ <method name="__LZgetView"/>
+ <method name="__LZisSelected"/>
<method name="__LZsetSelected"/>
- <method name="clearSelection"/>
+ <method name="__LZsetSelection"/>
+ <method name="__LZsplitRange"/>
+ <method name="createRange"/>
+ <method name="destroy"/>
<method name="getSelection"/>
- <method name="isSelected"/>
- <method name="makeSelected"/>
- <method name="selectRange"/>
- <method name="unselect"/>
</interface>
<interface extends="node" name="state">
<method name="$lzc$set_$delegates"/>
@@ -557,6 +571,7 @@
<method name="$lzc$getCurrentTime_dependencies"/>
<method name="$lzc$getMouse_dependencies"/>
<method name="$lzc$getTotalTime_dependencies"/>
+ <method name="$lzc$isMouseOver_dependencies"/>
<method name="$lzc$setAttributeRelative_dependencies"/>
<method name="$lzc$set_aaactive"/>
<method name="$lzc$set_aadescription"/>
@@ -569,7 +584,10 @@
<method name="$lzc$set_cachebitmap"/>
<method name="$lzc$set_clickable"/>
<method name="$lzc$set_clickregion"/>
+ <method name="$lzc$set_clip"/>
+ <method name="$lzc$set_context"/>
<method name="$lzc$set_contextmenu"/>
+ <method name="$lzc$set_cornerradius"/>
<method name="$lzc$set_cursor"/>
<method name="$lzc$set_fgcolor"/>
<method name="$lzc$set_font"/>
@@ -583,9 +601,14 @@
<method name="$lzc$set_proxyurl"/>
<method name="$lzc$set_resource"/>
<method name="$lzc$set_rotation"/>
+ <method name="$lzc$set_shadowangle"/>
+ <method name="$lzc$set_shadowblurradius"/>
+ <method name="$lzc$set_shadowcolor"/>
+ <method name="$lzc$set_shadowdistance"/>
<method name="$lzc$set_showhandcursor"/>
<method name="$lzc$set_source"/>
<method name="$lzc$set_stretches"/>
+ <method name="$lzc$set_tintcolor"/>
<method name="$lzc$set_valign"/>
<method name="$lzc$set_visibility"/>
<method name="$lzc$set_visible"/>
@@ -606,6 +629,7 @@
<method name="__LZvalignMiddle"/>
<method name="__makeSprite"/>
<method name="__spriteAttribute"/>
+ <method name="__updateShadow"/>
<method allocation="class" name="__warnCapability"/>
<method name="__zCompare"/>
<method allocation="class" name="addProxyPolicy"/>
@@ -613,6 +637,7 @@
<method name="bringToFront"/>
<method name="construct"/>
<method name="containsPt"/>
+ <method name="createContext"/>
<method name="destroy"/>
<method name="getAttributeRelative"/>
<method name="getBounds"/>
@@ -621,6 +646,7 @@
<method name="getContextMenu"/>
<method name="getCurrentTime"/>
<method name="getDepthList"/>
+ <method name="getDisplayObject"/>
<method name="getID3"/>
<method name="getLinkage"/>
<method name="getMCRef"/>
@@ -633,6 +659,9 @@
<method name="getVolume"/>
<method name="getZ"/>
<method name="init"/>
+ <method name="isBehind"/>
+ <method name="isInFrontOf"/>
+ <method name="isMouseOver"/>
<method name="makeMasked"/>
<method name="measureHeight"/>
<method name="measureSize"/>
@@ -663,6 +692,7 @@
<method name="setAlign"/>
<method name="setAttributeRelative"/>
<method name="setBGColor"/>
+ <method name="setCSS"/>
<method name="setClickable"/>
<method name="setColor"/>
<method name="setColorTransform"/>
@@ -702,6 +732,9 @@
<event name="onblur"/>
<event name="onclick"/>
<event name="onclickable"/>
+ <event name="onclip"/>
+ <event name="oncontext"/>
+ <event name="oncornerradius"/>
<event name="ondblclick"/>
<event name="onerror"/>
<event name="onfocus"/>
@@ -733,8 +766,13 @@
<event name="onresourceheight"/>
<event name="onresourcewidth"/>
<event name="onrotation"/>
+ <event name="onshadowangle"/>
+ <event name="onshadowblurradius"/>
+ <event name="onshadowcolor"/>
+ <event name="onshadowdistance"/>
<event name="onstop"/>
<event name="ontimeout"/>
+ <event name="ontintcolor"/>
<event name="ontotalframes"/>
<event name="onunstretchedheight"/>
<event name="onunstretchedwidth"/>
@@ -757,7 +795,9 @@
<attribute name="clickable" type="boolean" value="false"/>
<attribute final="true" name="clickregion" type="string"/>
<attribute final="true" name="clip" type="boolean" value="false"/>
+ <attribute name="context" type="expression"/>
<attribute name="contextmenu" type="string"/>
+ <attribute name="cornerradius" type="number" value="0"/>
<attribute name="cursor" type="token"/>
<attribute name="fgcolor" type="color" value="0"/>
<attribute name="focusable" type="boolean" value="false"/>
@@ -780,13 +820,19 @@
<attribute name="resourceheight" type="number"/>
<attribute name="resourcewidth" type="number"/>
<attribute name="rotation" type="numberExpression" value="0"/>
+ <attribute name="shadowangle" type="number" value="0"/>
+ <attribute name="shadowblurradius" type="number" value="4"/>
+ <attribute name="shadowcolor" type="color" value="0"/>
+ <attribute name="shadowdistance" type="number" value="10"/>
<attribute name="showhandcursor" type="boolean"/>
<attribute name="source" type="string"/>
<attribute enum="width|height|both" name="stretches" type="string"
value="none"/>
<attribute name="subviews" type="string"/>
+ <attribute name="tintcolor" type="string"/>
<attribute name="totalframes" type="number"/>
<attribute name="unstretchedheight" type="number"/>
<attribute name="unstretchedwidth" type="number"/>
+ <attribute name="usegetbounds"/>
<attribute enum="top|middle|bottom|constraint" name="valign"
type="string" value="top"/>
<attribute name="visibility" type="string" value="collapse"/>
<attribute name="visible" type="boolean" value="true"/>
@@ -872,6 +918,7 @@
<attribute name="accessible" type="boolean" value="false"/>
<attribute name="scriptlimits" type="css"/>
<containsElements>
+ <element>anonymous</element>
<element>view</element>
<element>script</element>
<element>stylesheet</element>
@@ -904,6 +951,7 @@
<method name="$lzc$getTextWidth_dependencies"/>
<method name="$lzc$getText_dependencies"/>
<method name="$lzc$set_antiAliasType"/>
+ <method name="$lzc$set_clip"/>
<method name="$lzc$set_font"/>
<method name="$lzc$set_fontsize"/>
<method name="$lzc$set_fontstyle"/>
@@ -945,7 +993,6 @@
<method name="getBottomScroll"/>
<method name="getDefaultWidth"/>
<method name="getGridFit"/>
- <method name="getMCRef"/>
<method name="getMaxScroll"/>
<method name="getScroll"/>
<method name="getSelectionPosition"/>
@@ -1084,8 +1131,6 @@
</interface>
<interface extends="node" name="class">
<attribute name="extends" type="token" value="view"/>
- <!-- The comma-separated list of mixins, applied in order -->
- <attribute name="with" type="string"/>
</interface>
<interface extends="node" name="interface">
</interface>
@@ -1100,6 +1145,8 @@
<interface extends="Instance" name="resource">
<attribute name="src" type="string"/>
<attribute name="name" type="token"/>
+ <attribute name="offsetx" type="number" value="0"/>
+ <attribute name="offsety" type="number" value="0"/>
<containsElements>
<element>frame</element>
</containsElements>
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/schema/lzx.rng Mon Oct 12
05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/schema/lzx.rng Sun Feb 14
03:20:19 2010
@@ -1830,6 +1830,11 @@
<data type="token" datatypeLibrary=""/>
</attribute>
<optional>
+ <attribute name="style">
+ <data type="string" datatypeLibrary=""/>
+ </attribute>
+ </optional>
+ <optional>
<interleave>
<optional>
<attribute name="value">
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/app-console.xslt
Mon Oct 12 05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/app-console.xslt
Sun Feb 14 03:20:19 2010
@@ -17,6 +17,7 @@
<xsl:param name="lfc"><xsl:value-of
select="/*/request/@lfc"/></xsl:param>
<xsl:param name="debug"><xsl:value-of select="(/*/info/@debug = 'true')
or (/canvas/@debug = 'true')"/></xsl:param>
<xsl:param name="lzruntime" select="/*/@runtime"/>
+ <xsl:param name="runtimes" select="/canvas/@runtimes"/>
<xsl:param name="appinfo"><xsl:value-of
select="/*/console_appinfo/text()"/></xsl:param>
<xsl:param name="assets"><xsl:value-of
select="/*/request/@lps"/>/lps/assets</xsl:param>
<xsl:param name="console-floating-window"><xsl:value-of
select="/*/request/@console-floating-window"/></xsl:param>
@@ -126,7 +127,7 @@
<div id="{$consolefooter}">
<!-- an embedded SOLO console app to replace the HTML console -->
- <iframe
src="{$lps}/lps/admin/dev-console.html?lzr={$lzruntime}&lzappuid={$appuid}&appinfo={$appinfo}"
+ <iframe
src="{$lps}/lps/admin/dev-console.html?lzr={$lzruntime}&lzappuid={$appuid}&appinfo={$appinfo}&runtimes={$runtimes}"
style="width: 100%; height: {$consoleheight}px; border: 0
none;"
width="100%" height="{$consoleheight}" frameborder="0"/>
@@ -288,7 +289,7 @@
</xsl:stylesheet>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006, 2008, 2009 Laszlo Systems, Inc. All Rights
Reserved. *
+* Copyright 2001-2006, 2008, 2009, 2010 Laszlo Systems, Inc. All Rights
Reserved. *
* Use is subject to license
terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
=======================================
---
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/app-console_jp.xslt
Mon Oct 12 05:50:28 2009
+++
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/app-console_jp.xslt
Sun Feb 14 03:20:19 2010
@@ -17,6 +17,7 @@
<xsl:param name="lfc"><xsl:value-of
select="/*/request/@lfc"/></xsl:param>
<xsl:param name="debug"><xsl:value-of select="(/*/info/@debug = 'true')
or (/canvas/@debug = 'true')"/></xsl:param>
<xsl:param name="lzruntime" select="/*/@runtime"/>
+ <xsl:param name="runtimes" select="/canvas/@runtimes"/>
<xsl:param name="appinfo"><xsl:value-of
select="/*/console_appinfo/text()"/></xsl:param>
<xsl:param name="assets"><xsl:value-of
select="/*/request/@lps"/>/lps/assets</xsl:param>
<xsl:param name="console-floating-window"><xsl:value-of
select="/*/request/@console-floating-window"/></xsl:param>
@@ -126,7 +127,7 @@
<div id="{$consolefooter}">
<!-- an embedded SOLO console app to replace the HTML console -->
- <iframe
src="{$lps}/lps/admin/dev-console.html?lzr={$lzruntime}&lzappuid={$appuid}&appinfo={$appinfo}"
+ <iframe
src="{$lps}/lps/admin/dev-console.html?lzr={$lzruntime}&lzappuid={$appuid}&appinfo={$appinfo}&runtimes={$runtimes}"
style="width: 100%; height: {$consoleheight}px; border: 0
none;"
width="100%" height="{$consoleheight}" frameborder="0"/>
@@ -288,7 +289,7 @@
</xsl:stylesheet>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006, 2008, 2009 Laszlo Systems, Inc. All Rights
Reserved. *
+* Copyright 2001-2006, 2008, 2009, 2010 Laszlo Systems, Inc. All Rights
Reserved. *
* Use is subject to license
terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
=======================================
---
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/deployment-response.xslt
Mon Oct 12 05:50:28 2009
+++
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/deployment-response.xslt
Sun Feb 14 03:20:19 2010
@@ -15,7 +15,8 @@
<xsl:template name="containerdiv">
<xsl:param name="methodname" />
- <p>By default, applications are placed inside a new div with the
id 'Container' appended to the app id, or '<code><xsl:value-of
select="/canvas/@id"/>Container</code>' for the application above. To
place the application inside an existing div, you can specify the div's id
as an argument to <code>lz.embed.<xsl:value-of select="$methodname"/>({...
appenddivid: 'divid'})</code>. Alternatively, you can change the id of an
existing div or add a new one, e.g. '<code><div id="<xsl:value-of
select="/canvas/@id"/>Container">...</div></code>'.</p>
+ <h2>Embedding applications in an existing HTML div</h2>
+ <p>By default, applications are placed inside a new div with the
id 'Container' appended to the app id, or '<code><xsl:value-of
select="/canvas/@id"/>Container</code>' for the application above. To
place the application inside an existing div, you can specify the div's id
as an argument to <code>lz.embed.<xsl:value-of select="$methodname"/>({...
appenddivid: 'divid'})</code>. Alternatively, you can change the id of an
existing div or add a new one, e.g. '<code><div id="<xsl:value-of
select="/canvas/@id"/>Container">...</div></code>'. For best results,
please ensure the div you wish to append to appears before the call to
<code>lz.embed.<xsl:value-of select="$methodname"/>()</code>.</p>
</xsl:template>
<xsl:template name="solodeployment">
@@ -29,14 +30,41 @@
<p>To disable the history feature for an application, you can set
the <code>history</code> argument to false, e.g.
<code>lz.embed.<xsl:value-of select="$methodname"/>({... history:
false}...)</code>.</p>
</xsl:template>
- <xsl:template name="exampledeployment">
- <p>Click <a
href="{/canvas/request/@url}?lzt=html{/canvas/request/@query_args}">here</a>
to see an example deployment page.</p>
-
+ <xsl:template name="querystringoptions">
+ <xsl:param name="methodname" />
+ <p>Arguments passed into <code>lz.embed.<xsl:value-of
select="$methodname"/>({...})</code> can be overridden by adding them to
the query string when the app is loaded, with 'lz' prepended to the name.
Currently,
the 'lzusemastersprite', 'lzskipchromeinstall', 'lzcancelkeyboardcontrol', 'lzcancelmousewheel', 'lzhistory', 'lzaccessible', 'lzapproot', 'lzserverroot'
and 'lzwmode' properties are supported. For example, to test this
application with the mousewheel disabled, add
<code>lzcancelmousewheel=true</code> to the app's URL, e.g
<code><xsl:value-of select="/canvas/request/@url"/>?lzt=html<xsl:value-of
select="/canvas/request/@query_args"/>&lzcancelmousewheel=true</code>.
Please adjust your wrapper HTML to reflect these settings in
<code>lz.embed.<xsl:value-of select="$methodname"/>({...})</code> when you
get them the way you'd like.</p>
+ </xsl:template>
+
+ <xsl:template name="dhtmloptions">
<p>If the HTML is located in a different directory than the
lzx source file, the value of the 'url' parameter will need to
- be changed.</p>
+ be changed and the 'approot' parameter specified as a URL with a
trailing slash, e.g.:</p>
+
+<pre>
+<script type="text/javascript">
+ lz.embed.dhtml({url: 'url/to/app/<xsl:value-of
select="/canvas/request/@url"/>?lzt=object<xsl:value-of
select="/canvas/request/@query_args"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
approot: 'url/to/app/'});
+ lz.embed.<xsl:value-of select="/canvas/@id"/>.onload = function
loaded() {
+ //Called when the application finishes loading
+ }
+</script></pre>
+
+ <p>To prevent the application from grabbing mousewheel events and
keyboard events for tab, arrow and enter keys, set the
<code>cancelkeyboardcontrol</code> argument to true, e.g.
<code>lz.embed.dhtml({... cancelkeyboardcontrol: true}...)</code>.</p>
+ <p>To skip prompts to install the Google chrome frame in IE 6, set the
<code>skipchromeinstall</code> argument to true, e.g.
<code>lz.embed.dhtml({... skipchromeinstall: true}...)</code>.</p>
+ <p>To use a single sprite resource when possible, set the
<code>usemastersprite</code> argument to true, e.g.
<code>lz.embed.dhtml({... usemastersprite: true}...)</code>.</p>
</xsl:template>
+ <xsl:template name="cancelmousewheel">
+ <xsl:param name="methodname" />
+ <p>To disable the mouse wheel for an application, you can set the
<code>cancelmousewheel</code> argument to true, e.g.
<code>lz.embed.<xsl:value-of select="$methodname"/>({... cancelmousewheel:
true}...)</code>.</p>
+ </xsl:template>
+
+ <xsl:template name="exampledeployment">
+ <p>Click <a
href="{/canvas/request/@url}?lzt=html{/canvas/request/@query_args}">here</a>
to see an example deployment page.</p>
+
+ <h2>Optional arguments for embedding</h2>
+ <p>Each runtime has optional arguments that can be specified when
the application is embedded on the page.</p>
+ </xsl:template>
+
<xsl:template match="/">
<html>
<head>
@@ -121,21 +149,26 @@
</script></pre>
<xsl:call-template name="exampledeployment"/>
-
+
<xsl:call-template name="disablehistory"><xsl:with-param
name="methodname" select="'swf'" /></xsl:call-template>
+ <xsl:call-template name="cancelmousewheel"><xsl:with-param
name="methodname" select="'swf'" /></xsl:call-template>
+
<xsl:call-template name="containerdiv"><xsl:with-param
name="methodname" select="'swf'" /></xsl:call-template>
- <p>You can also use the <code>js</code> request type to generate
+ <!--p>UNSUPPORTED! You can also use the <code>js</code> request type
to generate
the call to <code>lz.embed.swf()</code>:</p>
<pre><script src="<xsl:value-of
select="/canvas/request/@url"/>?lzt=js" type="text/javascript">
-</script></pre>
-
- <p>To upgrade the Flash player where necessary, specify a version
number with the second argument to <code>lz.embed.swf(properties[,
minimumVersion])</code>. The default version number is 7. Currently,
Safari requires Flash 8, and will automatically use that version and
upgrade the player where required. This example would always use Flash
Player 8 or later:
- <pre>lz.embed.swf({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=swf<xsl:value-of
select="/canvas/request/@query_args"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'}, 8)</pre>
+</script></pre-->
+
+ <h2>Specifying the version of Flash to be used</h2>
+ <p>To upgrade the Flash player where necessary, specify a version
number with the second argument to <code>lz.embed.swf(properties[,
minimumVersion])</code>. The default version number is 10, to help ensure
users update their players for security reasons. This example would always
use Flash Player 11 or later:
+ <pre>lz.embed.swf({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=swf<xsl:value-of
select="/canvas/request/@query_args"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'}, 11)</pre>
</p>
+ <xsl:call-template name="solodeployment"><xsl:with-param
name="jspname" select="'solo-deploy'" /></xsl:call-template>
+
<h2>Passing Parameters to SOLO applications</h2>
<p>
If you are deploying a SOLO application and wish to pass parameters down
to the application from the browser location bar, you need to make some
@@ -144,15 +177,9 @@
<p>
Here is an example call to <code>lz.embed.swf()</code> that passes all of
the query params down to the Laszlo app undamaged:</p>
<pre>
-lz.embed.swf({url: 'main.lzx.lzr=swf7.swf?'+window.location.search.substring(1),
bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'});
+lz.embed.swf({url: 'main.lzx.swf9.swf?'+window.location.search.substring(1),
bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'});
</pre>
-<p>
-
-The thing that's different is the alteration to
<code>main.lzx.lzr=swf7.swf? </code>from <code>main.lzx?lzt=swf</code> and
the addition of
-<code>'+window.location.search.substring(1)'</code> to read the query
string from the URL typed into the browser
-</p>
-
- <xsl:call-template name="solodeployment"><xsl:with-param
name="jspname" select="'solo-deploy'" /></xsl:call-template>
+
</xsl:when><xsl:otherwise>
@@ -185,9 +212,26 @@
<xsl:call-template name="disablehistory"><xsl:with-param
name="methodname" select="'dhtml'" /></xsl:call-template>
+ <xsl:call-template name="cancelmousewheel"><xsl:with-param
name="methodname" select="'dhtml'" /></xsl:call-template>
+
+ <xsl:call-template name="dhtmloptions"/>
+
+ <xsl:call-template name="querystringoptions"><xsl:with-param
name="methodname" select="'dhtml'" /></xsl:call-template>
+
<xsl:call-template name="containerdiv"><xsl:with-param
name="methodname" select="'dhtml'" /></xsl:call-template>
<xsl:call-template name="solodeployment"><xsl:with-param
name="jspname" select="'solo-dhtml-deploy'" /></xsl:call-template>
+
+<h2>Passing Parameters to SOLO applications</h2>
+<p>
+If you are deploying a SOLO application and wish to pass parameters down
to the application from the browser location bar, you need to make some
+ modifications to the stock html wrapper page that the server provides.
+</p>
+<p>
+Here is an example call to <code>lz.embed.dhtml()</code> that passes all
of the query params down to the Laszlo app undamaged:</p>
+<pre>
+lz.embed.dhtml({url: 'main.lzx.js?'+window.location.search.substring(1),
bgcolor: '<xsl:value-of select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'});
+</pre>
</xsl:otherwise></xsl:choose>
<h2>Accessing applications from browser JavaScript</h2>
@@ -205,6 +249,14 @@
</pre>
</p>
+ <p>To update the page with load progress information, use:
+ <pre>
+lz.embed.<xsl:value-of select="/canvas/@id"/>.onloadstatus = function
loadstatus(p) {
+ // called with a percentage (0-100) indicating load progress
+}
+ </pre>
+ </p>
+
<p>To read a canvas attribute in an application, use:
<pre>value = lz.embed.<xsl:value-of
select="/canvas/@id"/>.getCanvasAttribute('attributename')</pre></p>
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/embed-body.xslt
Mon Oct 12 05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/embed-body.xslt
Sun Feb 14 03:20:19 2010
@@ -21,7 +21,7 @@
<xsl:when test="/canvas/@runtime = 'dhtml'">
<div id="lzsplash" style="z-index: 10000000; top: 0; left:
0; width: {$canvaswidth}; height: {$canvasheight}; position: fixed;
display: table"><p style="display: table-cell; vertical-align:
middle;"><img src="{/canvas/request/@lps}/lps/includes/spinner.gif"
style="display: block; margin: 20% auto" alt="application
initializing"/></p></div>
<script type="text/javascript">
- lz.embed.dhtml({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=object<xsl:value-of
select="/canvas/request/@query_args"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'});
+ lz.embed.dhtml({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=object<xsl:value-of
select="/canvas/request/@query_args"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>',
cancelmousewheel: false, cancelkeyboardcontrol: false, skipchromeinstall:
false, usemastersprite: false, approot: ''});
lz.embed.<xsl:value-of select="/canvas/@id"/>.onload =
function loaded() {
var s = document.getElementById('lzsplash');
if (s) LzSprite.prototype.__discardElement(s);
@@ -30,7 +30,7 @@
</xsl:when>
<xsl:otherwise>
<script type="text/javascript">
- lz.embed.swf({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=swf<xsl:value-of
select="/canvas/request/@query_args"/>', allowfullscreen: '<xsl:value-of
select="/canvas/@allowfullscreen"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'});
+ lz.embed.swf({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=swf<xsl:value-of
select="/canvas/request/@query_args"/>', allowfullscreen: '<xsl:value-of
select="/canvas/@allowfullscreen"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>',
cancelmousewheel: false});
lz.embed.<xsl:value-of
select="/canvas/@id"/>.onloadstatus = function loadstatus(p) {
// called with a percentage (0-100) indicating load
progress
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/embed-body_jp.xslt
Mon Oct 12 05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/embed-body_jp.xslt
Sun Feb 14 03:20:19 2010
@@ -21,7 +21,7 @@
<xsl:when test="/canvas/@runtime = 'dhtml'">
<div id="lzsplash" style="z-index: 10000000; top: 0; left:
0; width: {$canvaswidth}; height: {$canvasheight}; position: fixed;
display: table"><p style="display: table-cell; vertical-align:
middle;"><img src="{/canvas/request/@lps}/lps/includes/spinner.gif"
style="display: block; margin: 20% auto" alt="application
initializing"/></p></div>
<script type="text/javascript">
- lz.embed.dhtml({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=object<xsl:value-of
select="/canvas/request/@query_args"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'});
+ lz.embed.dhtml({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=object<xsl:value-of
select="/canvas/request/@query_args"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>',
cancelmousewheel: false, cancelkeyboardcontrol: false, skipchromeinstall:
false, usemastersprite: true});
lz.embed.<xsl:value-of select="/canvas/@id"/>.onload =
function loaded() {
var s = document.getElementById('lzsplash');
if (s) LzSprite.prototype.__discardElement(s);
@@ -30,7 +30,7 @@
</xsl:when>
<xsl:otherwise>
<script type="text/javascript">
- lz.embed.swf({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=swf<xsl:value-of
select="/canvas/request/@query_args"/>', allowfullscreen: '<xsl:value-of
select="/canvas/@allowfullscreen"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>'});
+ lz.embed.swf({url: '<xsl:value-of
select="/canvas/request/@url"/>?lzt=swf<xsl:value-of
select="/canvas/request/@query_args"/>', allowfullscreen: '<xsl:value-of
select="/canvas/@allowfullscreen"/>', bgcolor: '<xsl:value-of
select="/canvas/@bgcolor"/>', width: '<xsl:value-of
select="/canvas/@width"/>', height: '<xsl:value-of
select="/canvas/@height"/>', id: '<xsl:value-of select="/canvas/@id"/>',
accessible: '<xsl:value-of select="/canvas/@accessible"/>',
cancelmousewheel: false});
lz.embed.<xsl:value-of
select="/canvas/@id"/>.onloadstatus = function loadstatus(p) {
// called with a percentage (0-100) indicating load
progress
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/html-response.xslt
Mon Oct 12 05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/html-response.xslt
Sun Feb 14 03:20:19 2010
@@ -62,6 +62,7 @@
<xsl:template match="/">
<html>
<head>
+ <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<link rel="SHORTCUT ICON"
href="http://www.laszlosystems.com/favicon.ico"/>
<!-- this tag helps laszlo apps look good on the iPhone. -->
=======================================
---
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/html-response_jp.xslt
Mon Oct 12 05:50:28 2009
+++
/trunk/singlewebapp/WebContent/WEB-INF/lps/templates/html-response_jp.xslt
Sun Feb 14 03:20:19 2010
@@ -62,6 +62,7 @@
<xsl:template match="/">
<html>
<head>
+ <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<link rel="SHORTCUT ICON"
href="http://www.laszlosystems.com/favicon.ico"/>
<!-- this tag helps laszlo apps look good on the iPhone. -->
=======================================
--- /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/info-response.xslt
Mon Oct 12 05:50:28 2009
+++ /trunk/singlewebapp/WebContent/WEB-INF/lps/templates/info-response.xslt
Sun Feb 14 03:20:19 2010
@@ -50,7 +50,7 @@
<xsl:call-template name="overview-row">
<xsl:with-param name="name" select="'LFC'"/>
<xsl:with-param name="href" select="'#includes'"/>
- <xsl:with-param name="size" select="stats/include/@size"/>
+ <xsl:with-param name="size" select="sum(stats/include/@size)"/>
</xsl:call-template>
<xsl:call-template name="overview-row">
<xsl:with-param name="name" select="'Class Definitions'"/>
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-dev?hl=en.