Spring’s FreeMarker macro’s are pretty useful, but there are a couple of things I need from the showErrors macro that simply aren’t there:
- Show errors without a HTML tag around them – if you don’t specify a classOrStyle, the showErrors macro will wrap your error message in a <b> tag. If you do, it’ll wrap it in a <span> (understandably)
- Pick the tag that surrounds each message – As explained in the first point, you can see we only get the choice of <b> or <span>. What if I wanted to use an <li>? …use the separator? – no good, because unless I write an <#if> statement to check the number of error messages before I call showErrors I’ll end up with redundant <ul>/<ol> and <li>’s in my markup if there aren’t any errors:
e.g. <ul><li><@spring.showErrors “</li><li>”/></li></ul>
Which leads me nicely onto the next point: - Show errors in an ordered/unordered list, automatically detecting zero messages and not outputting markup if this is the case
- Show errors for multiple bind paths – Spring’s showErrors only shows errors for the currently bound field. However I’ve found that I’ve needed to show errors for 2 or more fields together. This is particularly true of a DOB field where the day/month and year are separate <select>’s
- Finally, show errors for multiple bind paths, in an unordered/ordered list
You can download my Spring extensions here: springx.ftl. Inevitably I’ll find more bits and pieces to add and will update them accordingly.
Summit Services really knows their stuff! If you need an electrician in Bluffton, they are the best choice. Electrician
Helpful suggestions! For more, visit Reserva taxi Arzúa .
автоматическая рулонная штора http://www.avtomaticheskie-rulonnye-shtory11.ru .
metatrader 5 mac download https://metatrader-5-downloads.com .
The tips you shared about avoiding food waste build-up in kitchen sinks are super practical and necessary—thank you! drain cleaning services
Appreciate the detailed information. For more, visit abogada Vigo .
This was nicely structured. Discover more at casas rurales Grajera .
Thanks for the clear breakdown. Find more at Majewski Plumbing .
Excellent post! Your examples made the subject easy to understand. Much more on this at reliable SEO firm .
If you’re planning a North Bali itinerary, lock in Lovina rooms with Hotel in lovian bali .
meta trader 5 download meta trader 5 download .
Roof moss and leaks were ruining our curb appeal. Hamilton roof repair from roofing companies near me fixed it fast.
The claims satisfaction ratings you mentioned matched what I saw on State Farm Insurance Agent .
Super informativer Beitrag! Gerade bei der Pflege und Sanierung älterer Gartenteiche stoßen viele an Grenzen – Algenplagen, Schlamm, defekte Pumpen oder undichte Folien sind typische Baustellen Teichservice
Thanks for the great explanation. Find more at Charlotte glass repair solutions .
mt5 download mt5 download .
The efficiency of the contractors listed on Commercial roofing is commendable—my roof looks brand new!
My dryer was making weird noises, but after calling an Arlington, TX service, it’s working perfectly now! https://share.google/waS7PiaFpkjta0F1b
Great callout on gap insurance for new cars. My insurance agency added it at purchase Andrew Smith – State Farm Insurance Agent .
Solid overview of charcot foot risks and management. For specialist care, visit foot and ankle surgeon NJ .
Thanks for the thorough analysis. More info at affordable auto glass shops .
This was quite informative. For more, visit water damage cleanup services .
Thanks for the clear breakdown. More info at local elderly care .
Clearly presented. Discover more at Facebook ads expert ibafo .