Skip to content

Make FreeMarker macros for select input LinkedHashMap friendly [SPR-3864] #8544

Closed
@spring-projects-issues

Description

@spring-projects-issues

Eric Bottard opened SPR-3864 and commented

The freemarker macros that generate inputs of the type <select /> such as formSingleSelect iterate on options?keys. This is technically correct, but it would be nice to iterate on entries as this is what is ordered in LinkedHashMaps. This would allow to easily display options in label order.

Please note that using a SortedMap does not work, as one often wants values ordering (what is diplayed) rather then key ordering.

Hope this RFE makes sense.


Affects: 2.1 M3

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions