Posted by
Erik Bruchez on
Jan 04, 2011; 3:35am
URL: https://discuss.orbeon.com/HTML-output-of-the-form-rendered-through-Form-Runner-tp3167101p3173011.html
K,
> Erik, we are planning to have an offline client (stand alone desktop app)
> that renders the Orbeon form in the same way the browser is doing for the
> online submission. We are required to build the desktop app that does this,
> so I am investigating ways of rendering it without much effort. We are
> considering Java Swing or JavaFX from a technology perspective.
> I had one another related question. Orbeon does provide HTML Converter that
> converts the XHTML form to pure HTML and they also explain in the
> documentation on how to use HTML converter with XPL. However I would like to
> know how to invoke the HTML converter from a Java servlet (possibly in a
> different web context and not same as Orbeon). And if this is possible, can
> I use that rendered HTML to open it in any browser or a desktop app that
> supports HTML rendering.
Mmh, the HTML converter just serializes XML into HTML according to the
HTML serialization rules of XML. It is probably not of much help to
you.
Now the Orbeon Forms XML pipeline engine has an API, and you could run
that API within your own servlet, and run the converter, etc. But this
probably won't do what you need.
If I understand well, are you thinking of taking a form (I assume
XHTML+XForms), generate plain HTML from it, save that HTML, and run it
in an offline client?
This won't work, because you need the Orbeon runtime for the form to
work. Even in Noscript mode, the form needs the runtime to POST the
HTML form whenever the user clicks on a button.
The easiest path at this point if you need offline might be to embed a
local servlet container (Tomcat or Jetty) and web browser on the
client.
-Erik
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws