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.
I’m due for blue light lenses and want the Best Optometrist in Chino CA. Found helpful info on optometrist chino .
Thanks for the helpful advice. Discover more at local house cleaning services .
I like the focus on social engagement to reduce isolation for seniors living at home. quality home care service
Well done! Find more at movers near me .
Appreciate the thorough insights. For more, visit https://www.find-us-here.com/businesses/Nationwide-Contracting-Shelbyville-Indiana-USA/34397585/ .
Thanks for the thorough analysis. More info at roofers company .
Kudos for the emphasis on facial balance. My injector from ultherapy nyc prioritized harmony over volume.
This was very well put together. Discover more at colchones viscoelásticos Albacete .
The energy efficiency of my new metal roof is impressive! Great investment. Metal Roofing Near Me
Maintenance tip for Hamilton homeowners: annual roof inspection saves money. I schedule mine through hamilton events .
Your mission sequencing is helpful. I modeled my workflow from how long does interior painting take to avoid a smooth precision conclude.
Russian Golden Visa https://sernexuss.com/blog/pages/long-term-life-in-russia-planning-beyond-immigrations-first-year.html .
If your shower pan leaks, watch for ceiling stains below. emergency plumber near me performed a flood test, found a failed liner, and scheduled a rebuild to code.
Strong description concerning synthetic vs standard oil. I changed and got smoother chilly beginnings. If any individual needs a reliable oil adjustment solution, complete differential service has been an excellent resource.
Transportation to medical appointments saved us time. We verified schedules through profiles on respite care .
New home buyers should request an 11-month warranty inspection. Learn what it covers at roof inspection .
On the internet counseling permits a larger variety of healing methods and styles to find what resonates best with each individual! Check out more at best psychiatrists near me .
I used your advice on panel wipe techniques to avoid streaking pre-coat. More details at mobile detailing services .
Thanks for highlighting caregiver burnout. Respite options and schedules from home care helped me cope.
I found this very helpful. For additional info, visit cheap car rental toronto .
Maintenance tip for Hamilton homeowners: annual roof inspection saves money. I schedule mine through trusted roofing contractors .
Smart overview of ADA-compliant restroom plumbing. From knee clearance to sensor faucets, best plumber near me can retrofit commercial spaces.