Did you forget to include something? I get:
compile:
[javac] Compiling 566 source files to
/Users/maxcarlson/openlaszlo/trunk-clean/WEB-INF/lps/server/build
[javac]
/Users/maxcarlson/openlaszlo/trunk-clean/WEB-INF/lps/server/src/org/openlaszlo/compiler/WrapperHeaders.java:33:
cannot find symbol
[javac] symbol : method
removeNamespace(org.jdom.Element,org.jdom.Namespace)
[javac] location: class org.openlaszlo.compiler.NodeModel
[javac] NodeModel.removeNamespace(e, ns);
On 4/23/10 9:13 PM, Henry Minsky wrote:
Change 20100423-hqm-T by [email protected] on 2010-04-23 22:44:16 EDT
in /Users/hqm/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: add HTML wrapper passthrough tag to LZX
New Features:
Bugs Fixed: LPP-8901 support 'webapps'
Technical Reviewer: ptw
QA Reviewer: max
Doc Reviewer: (pending)
Documentation:
Release Notes:
A new tag is supported on the canvas, to add HTML content to the head of the
autogenerated HTML wrapper page.
example:
<wrapperheaders>
<meta name = "viewport" content = "initial-scale = 2.3, user-scalable =
no"/>
<link rel="apple-touch-icon-precomposed" href="/custom_icon.png"/>
</wrapperheaders>
Overview:
The<wrapperheaders> tag can be placed as a direct child of the canvas. Content
is passed through the generated Canvas XML, to the XSL template processor.
The app-console and html template insert the content into the<head> of their
generated
HTML page.
Details:
Compiler.java:
Add new special form,<wrapperheaders>
Canvas.java:
insert<wrapperheaders> into the generated canvas XML which is used by the
XSL templates
app-console.xslt:
add the content to the<head> tag of the HTML wrapper
SOLO apps will get this automatically because the SOLO builder fetches the
wrapper from the server.
Tests:
See attached test case hello.lzx.
Fetch this page as hello.lzx or hello.lzx?lzt=html, and verify that the content
inside of
the<wrapperheaders> tag shows up in the<head> of the generated HTML page.
Files:
M WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/Canvas.java
A WEB-INF/lps/server/src/org/openlaszlo/compiler/WrapperHeaders.java
M WEB-INF/lps/templates/html-response.xslt
M WEB-INF/lps/templates/app-console.xslt
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100423-hqm-T.tar
--
Regards,
Max Carlson
OpenLaszlo.org