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
|
dbConnectionName | false | true | java.lang.String |
indicate which dbconnection object to user.
|
format | false | true | java.lang.String |
specify a format to be used in concatenating
several display fields.
When more then one (1) field is shown, the
fields are, by default, separated by a
comma.
The format attribute was strengthened to
make it similar to the Unix sprintf utility.
There is now a need to be type specific
with the attribute.
For example,
format="%s is about %.2f" would be
where your float (ie%.2f) would be truncated
to two decimals.
ONLY THE DISPLAY VALUE WILL BE TRUNCATED
For more info, please see the Unix man page
or
http://developer.java.sun.com/developer/technicalArticles/Programming/sprintf/
or the javadocs
Example:
<db:tableData name="aQuery"
foreignTable="Cities"
visibleFields="city_id, city_name,
city_state"
format = "%i, %s / %s"
storeField="city_id"/>
Can be used when city_id is an integer,
city_name and city_state are strings in your
database.
Result -> 014, Naples / Florida
|
formatClass | false | true | java.lang.String |
class to use for special formatting.
This class must be derivide from
org.dbforms.util.PrintfFormat.
This class will be loaded through reflection api
and will be used to format the output.
Default is org.dbforms.util.PrintfFormat
|
foreignTable | true | true | java.lang.String | the name of the table where |
visibleFields | true | true | java.lang.String | No Description |
disableCache | false | true | java.lang.String | Each query is executed independently |
orderBy | false | true | java.lang.String | Specify an orderby clause for the query |
storeField | true | true | java.lang.String |
Describes the field in wich the data should be
stored
|