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.
Siding, fascia, and eavestrough colors should all coordinate. We’re updating our exterior palette and plan to work with home .
Los atascos recurrentes pueden indicar pendiente insuficiente. Un fontanero puede medirla. Ver fuga de agua valencia .
Great insights! Discover more at Charlotte glass repair technicians .
This is such an informative article! Plumbing issues can be so annoying, but prevention is key. For further reading, don’t forget to check out plumber .
The fenestration optimizes perspectives with out overheating. Glazing ratios on historical restorations near me .
Your details on maintaining hardscapes is critical. Acworth tree removal companies secured our patio throughout the elimination.
I used to wax monthly. After ceramic coating, it’s just rinse and go. full auto detailing packages explained the difference really well.
Sports injuries respond well to chiropractic care. For those around Ventura County, a Chiropractor in Thousand Oaks like Thousand Oaks Spinal Decompression is worth visiting.
Thank you, Pain Relief Centre, for helping me get back on track with my health journey! Your chiropractor near me in St Augustine is phenomenal! chiropractor near me
Clogged gutters caused basement seepage for us. We’re switching to aluminum guards. Found a local option: sagging gutters .
Thanks for the helpful article. More like this at quality 29307 Windshield Replacement .
The consultation questions you shared were so useful. I combined them with a list from Body contouring .
Visit an https://caucasustravel.ru to see elephants living in natural landscapes receiving care rehabilitation and freedom from exploitation. Ethical tours focus on education conservation and respectful observation.
Smile lines aren’t a Botox target—good callout. I broke down which concerns suit Botox vs. filler on botox near me .
I was struggling with SEO until I found Local SEO Seattle CA . Now my site ranks much better!
Experience an elephant sanctuary where welfare comes first. Walk alongside elephants watch them bathe feed them responsibly and discover how conservation efforts help protect these majestic animals.
An ethical elephant sanctuary provides rescued elephants with medical care natural habitats and social groups. Visitors contribute to conservation by learning observing and supporting sustainable wildlife programs.
Security metrics drive progress. We built dashboards with KPIs from MSP IT Services .