Previous Page

Next Page

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 a 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.

### General Form Components

normal button
checked
not checked
checked
checked and disabled
empty
with value
empty with size = 6
empty with maxlength = 6
readonly = readonly

### TextArea

some text default textarea size
empty with rows = 15, cols = 40