Announcement Announcement Module
Collapse
No announcement yet.
How to add Checkbox in .jspx page in spring roo? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to add Checkbox in .jspx page in spring roo?

    How to add Checkbox in .jspx page in spring roo?

  • #2
    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

    Comment

    Working...
    X