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

Extend <form:errors> with something like errorElement [SPR-9221] #13859

Closed
spring-issuemaster opened this issue Mar 10, 2012 · 2 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Mar 10, 2012

Marcel Overdijk opened SPR-9221 and commented

It would be nice to add more flexibility to the form:errors tag.
E.g. to render something like

<ul>
<li>error1</li>
<li>error2</li>
<ul>

With element="ul" a part can be implemented but the <li> element is not possible.
The delimiter attribute just outputs it content after eacht error.

Maybe the form:errors tag can be extended with something like errorElement or itemElement indicating a wrapper element for the each error.

Something like this:

<form:errors path="*" element="ul" errorElement="li" />


Affects: 3.1.1

Issue Links:

  • #8073 Better error handling from the form:errors tag ("duplicates")
@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Mar 12, 2012

Rossen Stoyanchev commented

It would probably be sufficient to support rendering unordered lists as follows:

<form:errors path="*" element="ul"/>
@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Nov 11, 2013

Marcel Overdijk commented

Note this is a duplicate of #8073. Sad to see that this issue is open for such a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.