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.
Appreciate the detailed information. For more, visit couples therapy .
Power Plumbing Heating & Air made finding a reliable plumber in Anaheim so easy, and their service exceeded my expectations.
I am so happy with Power Plumbing Heating & Air, the best plumber Anaheim could offer, and their team was so friendly plumber
Appreciate the detailed information. For more, visit free spins promotions .
Timely AC replacement by an HVAC contractor in Sierra Vista AZ before summer heat—perfect timing. HVAC service companies near me
”Your advice on keeping homes safe from rodents is spot-on; prevention is key.” Rodent Control Company
Great insights! Find more at tummy tuck .
This article is timely. After a heavy windstorm, a roofer in Mechanicsville MD fixed my missing shingles the same day. licensed roofing contractors
Thanks for the useful post. More like this at loan agency new orleans .
Noise and vibration isolation tips are great. split system installation used pads and mounts to keep it quiet.
Do you think weekly chiropractic visits are worth it for preventative care? I found this helpful: Chiropractor
Post-op swelling and bruising were minimal with ice and sleeping elevated. Recovery hacks from fast dental crowns Oxnard worked great.
Love the point about personalization of care plans. assisted living explains levels of care in plain language.
Moi je suis persuadé(e) qu’en s’unissant on peut réaliser tant de choses fantastiques… alors continuons à faire grandir cet amour commun !! caisse en bois pour bouteilles
Thanks for explaining tree stress signs. tree service monitored our elms through the summer.
The right real estate agent near me can make or break a deal— real estate agent in hervey bay helped me choose wisely.
Un bon verre de vin mérite une belle présentation dans une caisse en bois élégante! caisse à vin personnalisée
Loved the transparency about treatment plans. I compared Camarillo consultations via All on 4 procedure by dentist .
Excellent information here! A good Chiropractor near me can really improve your quality of life, especially in Puyallup where options abound.
Workplace injuries are stressful, but having solid representation from an `# any keyword#` reduces anxiety significantly! Florida Workers Comp Lawyer
Thanks for the clear breakdown. Find more at google moja firma .
The timeless beauty of granite can elevate any project—explore options with professionals like those at iron works .
Just had my air conditioning serviced by a crew from air conditioning service —great service!
If you want roof decking upkeep, roofing close to me authorities on roofing near me can investigate hidden destroy.
Headaches, dizziness, confusion, or light sensitivity can signal a concussion even without loss of consciousness. Seek evaluation promptly and limit screen time and strenuous activity as advised. Early care improves outcomes. Injury Lawyer
I’m looking into root canals and crowns in Tijuana; any good dentists you guys can suggest? I found some info at dentist tijuana .
Don’t hesitate—reach out to an experienced `# any keyword#` today if you’re dealing with workplace injuries! Florida Workers’ Compensation Lawyer
I had frequent freeze-ups— affordable ac repair corrected airflow and coil issues.
Summer heat is no joke. I had a breakdown last week and got help from heating and cooling repair —highly recommend for urgent AC repairs.
Appreciate the thorough analysis. For more, visit junk disposal .
I like how this piece emphasized local knowledge of USCIS offices. It makes sense that this could help avoid delays. Immigration lawyer Kent
Preventing work injuries should be a top priority for every employer. Great article! Florida Workers’ Compensation Lawyer
Pricing transparency is rare but crucial. assisted living compiled fee structures so we could compare apples to apples.
Got an urgent leak under the sink? licensed plumber denver serves Denver quickly.
. It’s refreshing to find articles that prioritize education over just selling services!! ### anykeyword ### septic tank cleaning
Just want definition in my Cupid’s bow—saw some techniques on lip filler service that look promising.
This makes chiropractic less intimidating. Chiropractor service makes use of gentle procedures that worked for me.
Kudos on providing such detailed insights into pipe maintenance—I’m excited plumbing taylors
Vacation-proof your Wylie home by having licensed plumber inspect shutoff valves and hoses.
Had my ejector pump replaced quickly—booked through chicago plumbers .
If you’re new to town, make sure to find a reputable **#plumber** quickly! plumbing services Valparaiso
Great job! Discover more at commercial auto comprehensive insurance .
1xbet yeni giri? 1xbet yeni giri? .
These Fresno personal injury lawyers seem dedicated to ensuring their clients receive the justice they deserve. If you’re looking for top-notch legal representation in Truck accident lawyer , these professionals might be your best bet!
918kiss ios 918kiss ios .
If you’re tackling a structural amendment, employ consultants like Home Remodeling near me .
Wonderful post regarding the significance of board up services; it’s something everyone should consider seriously! board up pasadena
Impressed by the professionalism showcased by these San Diego personal injury lawyers! Accident attorney seems like a reliable choice for anyone seeking expert legal assistance.
Searching online led me to find retaining wall installer – best decision ever for my home improvement needs!
Excellent insurance of Orlando’s trash pickup modifications. I track updates by using reliable dumpster services orlando .
I’m concerned about secondary poisoning. Which rodent control company in Los Angeles avoids anticoagulant baits? Rodent Control Inc in Los Angeles