dbforms
Tag staticData
external data to be nested into radio, checkbox or
select - tag!(useful only in conjunction with radio,
checkbox or select - tag)
Example:
this tag provides data to radio, checkbox or
select - tags. This data is provided byembedded
"StaticDataItem"-elements
this tag provides similar functionlaity like
"TableData" or "QueryData"
but as the namessuggest, the values of TableData
and QueryData come from a database, the data in
in StaticDataItem comes from the jsp page (from
"StaticDataItem"-elements)
Example:
<!We want to display a drop down list with
days of the week,
use the day_reference value for the default list
selection-->
<db:select
fieldName="day_reference">
<db:staticData name="myQuery">
<db:staticDataItem key="0"
value="Sunday"/>
<db:staticDataItem key="1"
value="Monday"/>
<db:staticDataItem key="2"
value="Tuesday"/>
<db:staticDataItem key="3"
value="Wednesday"/>
<db:staticDataItem key="4"
value="Thursday"/>
<db:staticDataItem key="5"
value="Friday"/>
<db:staticDataItem key="6"
value="Saturday"/>
</db:staticData>
</db:select>
Tag Information |
Tag Class | org.dbforms.taglib.StaticDataTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
name | true | true | java.lang.String |
an arbitrary id declared by the user - this id
is useful, if the same data should be used more
than once at one jsp page. using this unique
name the system is able to chache the data
|
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.
Java, JSP, and JavaServer Pages are trademarks or
registered trademarks of Sun Microsystems, Inc. in the US and other
countries. Copyright 2002-4 Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054, U.S.A.
All Rights Reserved.