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.
This was very enlightening. For more, visit trusted auto glass shop Charlotte .
Such an inspiring read about family building through surrogacy! Explore more at riverside best surrogacy agencies .
This was quite informative. For more, visit reservar casa rural Segovia .
Well done! Find more at testamentos y sucesiones Vigo .
Using vacuum excavation not only speeds up projects but also protects our environment—a win-win for all of us in Orange County! Find out more at vacuum excavation orange county !
The collaboration between Pure Green and Webjuice is a perfect example of synergy in action! Webjuice growth partner
If you’re hesitant about starting your estate plan, consider talking to an Orange County lawyer first! california estate planning
Custom steel window frames allow for larger glass panes which means more natural light! It’s time you explore this option on Steel specialty doors Anaheim CA .
Siding, fascia, and eavestrough colors should all coordinate. We’re updating our exterior palette and plan to work with kitchener roofing .
Storm season check: inspect flashing around chimneys and skylights. I’m scheduling maintenance through affordable roofing Kitchener to catch issues early.
Bu yaz?da, evinizi guzellestirirken islevselligi de art?rman?n yollar?n? kesfedecegiz.
Кстати, если вас интересует Modern Dekorasyonla Estetik ve Fonksiyonellik, загляните сюда.
Ссылка ниже:
https://dogalyasammobilya.com
Bu yaz?m?z isinize yarad?ysa, goruslerinizi bizimle paylas?n.
Appreciate the thorough write-up. Find more at opiniones sobre tienda de colchones en Albacete .
Their technology and safety standards are impressive. More CoolSculpting info: american laser med spa coolsculpting corpus christi .
I enjoyed this post. For additional info, visit auto glass replacement reviews .
Thanks for the info. I’m overdue for an exam and want the Best Optometrist in Chino CA. Going to look at optometrist chino for appointments.
I found this very interesting. Check out affordable assisted living for more.
Fantastic blog post! The information provided is essential for businesses operating in competitive areas like San Jose—check out SEO Marketing San Jose CA