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.
We’ve got so many exciting opportunities awaiting us thanks to modernized approaches like utilizing Vacuums during excavations instead of hitting rocks/roots blindly anymore; stay tuned via #anythingKeyWord# vacuum excavation orange county
I love how diverse the content on OnlyFans can also be—from health to cooking! What niches have you came across exciting? https://www.4shared.com/s/f3kRpZ03Lku
I’m looking to substitute my roof quickly. Any solutions for Burlington roofing professionals? I found out a few tremendous ones at best burlington roofing companies .
For holiday lights around San Jose neighborhoods, jb plumbing had a map that made it easy.
This was a great article. Check out water heater replacement near me for more.
Valuable information! Find more at columbia windshield replacement services .
This was very well put together. Discover more at Charlotte glass repair service .
Brilliant article! https://3nz9f.icu/newcastle-still-keen-on-conor-gallagher/
Truly inspired by using the satisfactory of provider from my plumber! Highly advise them! More insights at Plumber Norwich .
I’ve been looking for something like this. https://3nz9f.icu/newcastle-still-keen-on-conor-gallagher/
The value of professional installation can’t be overstated. I highly recommend Garage Door Installation Lakewood for this service.
Clear advice on managing scar tissue. For advanced treatments, see foot and ankle surgeon near me .
The post about bookkeeping for contractors hit home. tax accountant london set up cost codes for me.