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.
Want to achieve a more sculpted physique? Trust the expertise of CoolSculpting clinics in Corpus Christi, such as injectable fat dissolving .
Thanks for the primer on hurricane vs sanitary drains. I came upon neighborhood legislation through assets like Plumber near me Palm BAY .
I’m impressed by how quickly Social Cali of Rocklin adapts to new trends in digital marketing! social media marketing experts you can trust
This post explains why consulting with a lawyer can be beneficial for workers compensation claims! Workers Compensation
If you desire ductwork inspection in Fayetteville, AR, give furnace repair a glance.
Have you considered reaching out to San Jose personal injury lawyers for professional assistance? Your peace of mind is priceless, and they could provide the legal support you need. Don’t hesitate to explore your options! Big rig accident lawyer
Pain management plans matter; auto lawyers coordinates with treating physicians for comprehensive reports.
If you’re doing a storage cleanout in Orlando, a native dumpster rental by the use of commercial dumpster rental can shop so much time.
“This article really resonates, especially emphasizing trust-building practices—I’m eager about seeking guidance from social cali” # # anyKey word # social cali of rocklin content marketing agencies
Thanks for the useful post. More like this at architects services near me .
For updated Cairns clearance charges and developments, I comply with real estate agent Cairns .
Great insights on estate planning basics. If anyone’s considering drafting a will or trust, working with a dedicated trust and estate attorney like trust planning in Thousand Oaks can streamline the process and reduce costly mistakes.
Security film is underrated. We brought it by way of new york commercial window tinting and the additional shatter resistance gave our staff peace of mind.
This is very insightful. Check out colchones látex Albacete for more.
Thanks for the detailed guidance. More at Corfu Property for Sale .
Fantastic blog post, thanks! Referencing this in a forthcoming message on private home care agencies .
I’ve been searching for the Best Camarillo Dentist and came across rave reviews—excited to book an appointment through all on 6 dental implants soon!
I appreciated this article. For more, visit honorarios abogado Coruña .
Great article on San Jose’s imaginative networks. I’ve been because of best SEO strategy services San Jose to discover pop-up artwork suggests and meetups.
I liked this article. For additional info, visit folículos pilosos Jaén .
Well explained. Discover more at orthodontic braces services near me .