The checkbox tag uses embedded date to display a list of options, I think.
Are you using the checkbox with no body content? If so, try using it with
the tableData or queryData tag the checkbox tag's content.
(Something along the lines of
<db:radio fieldName="site_visit">
<db:queryData name="tt" query="select 0 as priId, 'no' as Descr from
table-q union select 1 as priId, 'yes' as Descr from table-q" />
</db:radio>
This will trick dbforms into displaying your data as a pair of radio boxes,
"No" and "Yes," which will then be stored in the underlying db as 0 or 1.
Hope this helps.
-- Matthew
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 12:28 PM
Subject: [dbforms] Checkbox error
> I recieve this error:
> org.apache.jasper.JasperException: /pq_input_form.jsp(233,5) According to
> the TLD attribute fieldName is mandatory for tag checkbox
>
> In my jsp I declere the checkbox like this:
>
>
> <db:checkbox fieldname="Site_Visit">
> </db:checkbox>
>
> (Implementing the checkbox like in the api doc example issues the same
> error)
>
> my config.xml file declares the field like this:
>
> <field name="Site_Visit" fieldType="ENUM" />
>
> and my database contains an enum field with true or false to represent the
> data. If their is a working configuration to represent this methodology
> can someone explain to me how tom implement it?
>
>
>
> Frank M. Gonzales
>
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> _______________________________________________
> DbForms Mailing List
>
> http://www.wap-force.net/dbforms
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms