Closed
Description
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:
- SPR-4700-ftl.patch (3.08 kB)
- SPR-4700-vm.patch (2.89 kB)
- velocity-freemarker-single-checkbox.patch (4.20 kB)
Issue Links:
- Velocity springFormCheckbox results in checkboxes that are always checked [SPR-6120] #10788 Velocity springFormCheckbox results in checkboxes that are always checked
Referenced from: commits 93e9955
0 votes, 5 watchers