demos.forms.xhtml Maven / Gradle / Ivy
Show all versions of flying-saucer-examples Show documentation
Flying Saucer: XHTML Forms Support
Flying Saucer XML/CSS2 Renderer
XHTML Forms Support
Forms support includes: Any XML/XHTML element can be "replaced" during the rendering cycle with a component
that knows how to draw itself. This means we can replace XHTML form elements with, for example, Swing components. It also
allows us to replace SVG tags with rendered SVG images, and so on. This page shows how an XHTML form is rendered via Swing;
one could also use another GUI toolkit for Java (AWT, Thinlet, etc.). FS doesn't currently support form submission out of
the box, but it can be added--the Swing components replaced in the page are just normal Swing components to which listeners
can be attached. Note that as with HTML, you can freely mix formatted text, images and CSS formatting with form elements.
Example Form Components