How to add Checkbox in .jspx page in spring roo?
How to add Checkbox in .jspx page in spring roo?
Well, it depends if you are using the scaffolding or not.
I am assuming you want to set up checkboxes, not radiobuttons. There is currently no radiobutton tag, although you could write one.
If you're using scaffolding, you'll have to add a boolean type field:
field boolean ...
That should turn into a checkbox field. The scaffolding should automatically generate your new field.
If you're writing your own JSPX form, you'll use the field:checkbox tag:
<field:checkbox field="processed" label="Processed?" />
If you use it in this way, you won't trip the localization or automatic field lookup engine. That may be OK for you.
Ken
Ken Rimple
Chariot Solutions
email: krimple@chariotsolutions.com
work: www.chariotsolutions.com/education
personal: www.rimple.com
Author: Spring Roo in Action (Manning)
MEAP Site: manning.com/rimple