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.
The rival space analysis was on point– did you brochure their top referring domains? I’ll develop a chase list page inside SEO NEO Reviewed so our outreach team can track development.
After experiencing a flooding, I was impressed at just how much restoration work was required. It’s essential to choose the right professionals that comprehend the intricacies of catastrophe recovery. Learn more about this procedure at affordable storm damage repair in Bay Area .
Eye strain from screens is real. If you’ve found the Best Optometrist in Chino CA for this, I’ll compare with optometrist near me .
Någon som vet vad som ingår i standardpriserna hos elektriker? lokale elektriker
Great insurance over the dark base colour. For precision finish pro painter pointers on priming, payment residential painting contractor .
Real estate litigation support from bankruptcy consultation services in London ON was strategic and effective.
The typography e-book is greatest. For classy fashion options in Chicago net tasks, see Professional Web Design Chicago .
Thanks for the thorough article. Find more at house cleaning in pacifica .
Best burgers in San Jose—shortlist here: find a local plumber
литовский номер телефона
Your tips on finding reputable doctors who specialize in treating workplace injuries were very valuable—thank you! Workers Compensation Lawyer
The explanation of top-up sprays vs. true coatings was excellent. I picked mine from ceramic coating maintenance .
Great job! Discover more at despacho de abogados en Santiago .
This was a fantastic read. Check out escapada rural Segovia for more.
That is a really good tip particularly to those new to the blogosphere.
Short but very precise information… Many thanks for sharing this one.
A must read post!
Thanks for the thorough analysis. More info at planeación fiscal Saltillo .
The safety emphasis throughout this post is commendable. Gas is no DIY zone. boiler repair
Văn hóa tâm linh liên quan đến lễ vật thật đẹp và ý nghĩa, mong được đọc nhiều hơn trên trang của bạn qua link này: đồ cúng tại Côn Đảo
If your irrigation system causes indoor pressure drops, install a separate PRV. emergency plumber near me sized and installed one and balanced both systems.
Thanks for the detailed guidance. More at Transfer hotel Arzúa .
This was nicely structured. Discover more at roof repair .
Appreciate the pointers on spotting hail break. I requested a roof review by way of top roofing contractor companies and were given immediate provider.
Thanks for the practical tips. More at roofers .