Class Form
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.StylableTag
net.sf.basedb.clients.web.taglib.table.Form
- All Implemented Interfaces:
Serializable
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,DynamicActionAttributes
public class Form extends StylableTag
An alternative layout for tables which contains only one row.
The table and columns should be defined as usual. Values for
the columns are also set with the <tbl:cell> tag as asual.
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. |
- Version:
- 2.14
- Author:
- Nicklas
- See Also:
- Serialized Form
- Last modified
- $Date: 2019-04-11 09:31:26 +0200 (tors, 11 apr. 2019) $
-
Field Summary
Fields Modifier and Type Field Description private Map<String,String>
headers
private static long
serialVersionUID
private Table
table
private int
width
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors Constructor Description Form()
-
Method Summary
Modifier and Type Method Description int
doEndTag()
int
doStartTag()
void
setWidth(int width)
Methods inherited from class net.sf.basedb.clients.web.taglib.StylableTag
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, initDefaultAttributes, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
table
-
headers
-
width
private int width
-
-
Constructor Details
-
Form
public Form()
-
-
Method Details
-
setWidth
public void setWidth(int width) -
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Throws:
JspException
-
doEndTag
- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Throws:
JspException
-