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 appreciate the step-by-step for site migrations. seo services toronto guided our move without losing rankings.
Thanks for the useful post. More like this at facelift surgeon .
My Houston balayage refresh looks so natural. Photos on hair salon .
For energy rebates, Houston door distributor advised us on qualifying doors in Houston.
Upkeep matters! Fiberglass doors and plastic windows have been low-maintenance for us compared to wood. If you desire pros/cons by product, affordable window and door installation summarizes it well.
just a test
customized contracting does exact paintings on my condo
customized contracting eavestrough & roofing kitchner roofing
kitchner roofing tradition contracting eavestrough & roofing
customized-contracting flat roof repair Kitchener
Good callout on cleansing. I confirmed 3 sponge models and dish soap workouts to shelter the coating—complete process here: Parini cookware product insights
Have you considered the advantages of working with professionals for your demolition requires? Check out residential hauling services to see how they can aid improve your task!
Easy Dumpster Rental is the very best dumpster rental business for tasks in the Tampa bay location. The pricing is really affordable, and the services are constantly first-rate 10 Cubic Yard Dumpster tampa fl
Garage fire separation and self-closing hinges matter. Garage safety checklist at foundation inspection .
Heavy tubs need a solid base—don’t skimp. Structural guide I used is on hot tubs near me .
If you’re dealing with water retention, talk to a pro and explore Lymphatic Drainage Massage basics at https://innovativeaesthetic.ca/ .
just a test
just a test
I’d recommend Sarasota, FL car tint sarasota to anyone in Sarasota wanting quality tint and reliable service.
A must-visit spot if you’re craving Indian food that hits all the right notes!!! # # anyKeyWord# # affordable indian dining spokane valley
Thanks for the warranty questions list. Scottsdale roofing contractors should provide written manufacturer warranties. https://maps.app.goo.gl/rowQzgUkP1mjo67b9
just a test
It’s vital we spread awareness about proper care—it benefits everyone involved ultimately! https://maps.app.goo.gl/QPpmvAZFHw5AZZQa8