Skip to content

Add single checkbox input macro for Velocity and Freemarker [SPR-4700] #9377

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sébastien Launay opened SPR-4700 and commented

Currently for creating a single checkbox input we have 3 solutions:

  • use formCheckboxes macro but with a hard coded single element options parameter.
  • bind to the right field and then add two inputs (one for the real input and optionally one for multi page submission).
  • and the dirty one where we manually create the input and fill its contents.

It would be nice to has a formCheckbox macro for a single checkbox.

Indeed, it would be more flexible for:

  • choosing where we want to put the label
  • linking the input to a label element (not possible with the second solution because there is no id attribute).

Affects: 2.5.3

Attachments:

Issue Links:

Referenced from: commits 93e9955

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions