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.
Keep your will current— professional legal advisors London Ontario can update your estate documents promptly.
There’s something regal about having a striking copper copper cupola on your property! phineals and spires
If you park outside, ceramic is a game changer. I read outdoor care tips on affordable ceramic coating and it’s paying off.
Thanks for protecting the oven-riskless temps. I driven the Parini Dutch oven with roasted white meat—outcomes and temps logged here: review of Parini cookware
So impressed with the roofing crew in Hamilton who handled our shingle replacement. If you need help, start with local gutter repair contractor .
How to maintain results— professional lip fillers posts Miami maintenance plans for lips.
Fire damages can be devastating, but with the best calamity restoration services, homes can be brought back to life. I located some great resources that lay out the steps involved in remediation at emergency fire restoration services SF .
Amazing photography spots listed the following. I went on a picture walk social simply by seo automation tools san jose .
Copper-middle pans warm fast yet might be finicky. The preservation advice and logo comparisons on top cookware brands 2023 saved me from overspending.
Your ebook to roof inspection snap shots is pleasant. My roof craftsman from best roofing Conroe TX provided a full gallery.
Great breakdown of materials. We chose fiberglass from local door distributor services in Houston and it’s holding up well.
I’m excited about the long-term benefits of choosing laser hair removal through American Laser Med Spa’s professional services! trustworthy med spa reviews
This is a blueprint for success. Best Property Management Fort Myers can implement it for you.
This aligns with our experience. After hail, Pool Cage Screen Repair Cape Coral did an excellent Pool Screen Repair.
For people close to their goal weight, this seems ideal. American Laser Med Spa clarifies CoolSculpting candidacy well. clinical body contouring techniques
I swear by using essential oils in my cleaning routine! They make my home smell amazing while keeping it clean. More ideas at best house cleaning redwood city .
Avoiding broker scams—only using vetted Allentown auto shipping via Allentown Axiom Transport’s .
Music playlists from a senior’s youth can reduce agitation at home. affordable senior caregiver