Results 1 to 2 of 2

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

  1. #1
    Join Date
    Nov 2011
    Posts
    2

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

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

  2. #2
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •