public class Form extends StylableTag
This layout shows the "row" as a pair of left-right-oriented header/value pair. The default width is 1 which means that the header/value are stacked vertically. The width can be increased to get several "columns" of header/value pairs.
This layout was developed because we needed to support a form-based layout were the order and visibility of the header/values can be modified by the user. With this layout the same configuration dialog that is used for normal tables can be used.
Syntax:
<tbl:form width=... > <tbl:cell>...</tbl:cell> </tbl:form>
Attribute | Default value | Required | Description |
width | 1 | no | The number of columns (header/value) pairs in the form. |
Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
headers |
private static long |
serialVersionUID |
private Table |
table |
private int |
width |
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Form() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
void |
setWidth(int width) |
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
private static final long serialVersionUID
private Table table
private int width
public void setWidth(int width)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException