Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form:hidden tag should allow most (All?) of the same HTML attributes as form:input [SPR-7249] #11908

Closed
spring-projects-issues opened this issue May 31, 2010 · 2 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Tom Duffey opened SPR-7249 and commented

The form:hidden tag should support the same HTML attributes as form:input. After all, a "hidden" field is a HTML input field with type="hidden."

This is useful in practice when we want to attach events or styles to hidden inputs. This sounds strange at first but I have found it used in a few different applications when migrating from Struts to Spring Web MVC.


Affects: 3.0.2

Attachments:

Referenced from: commits 78c906c

@spring-projects-issues
Copy link
Collaborator Author

Tom Duffey commented

Patch to make HiddenInputTag extend AbstractHtmlInputElementTag and include all available HTML attributes in the form:hidden tag

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good point! Not all HTML input attributes make sense here (like with LabelTag) but at least the ones from AbstractHtmlElementTag should be supported (equivalent to LabelTag).

Fixed for 3.0.3; will be available in tonight's 3.0.3 snapshot. Feel free to give it an early try...

Juergen

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants