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 great suggestions. For more, visit financiación injerto capilar .
Regular consultations with your injury lawyer will keep you informed every step of the way! georgia personal injury lawyer
Helpful breakdown on durable powers of attorney. Don’t forget medical directives too. This guide clarified how they tie into a complete plan: Trust Planning Attorney
Appreciate the detailed post. Find more at SEO .
Looking for a comprehensive estate planning firm? Try contacting orange county trust administration lawyer in your area.
Does anyone have suggestions for affordable Augusta moving companies? I need to plan my move soon. Local movers Augusta
I found this information on liability very enlightening—thanks for breaking it down so clearly! law firms for truck accidents
Helpful suggestions! For more, visit trichoscan .
Great advice! Choosing the right Joliet car transport company is crucial. Joliet vehicle transport
Quelle belle façon de réutiliser ce qui est ancien et de lui donner une seconde vie! caisse en bois pour bouteilles
This was beautifully organized. Discover more at https://twitter.com/SubPlumbing .
deutsche online wettanbieter
Feel free to surf to my page sportwetten in der schweiz (Steve)
aviation game aviation game .
For anyone evaluating an SEO company, make sure they offer clear communication— SEO Agency has been stellar there.
Great article, many thanks! If any person’s interested, I discussed this at Web Design .
Je vais acheter une caisse en bois pour mon prochain anniversaire, ça fera un super cadeau ! présentoir bouteilles bois
Amazing post! It’s good to know there are trustworthy auto transport companies in West Lake Hills. West Lake Hills car moving companies
Thanks for the great tips. Discover more at water Heating Repair .
The guide on avoiding “overfilled” looks by mixing Botox and filler smartly is on botox near me .
Baseboard heating not warming evenly? Central Plumbing Heating & Air Conditioning purged our loops and replaced a failing zone valve. Perfect now. Contact heating service .
Clearly presented. Discover more at alojamiento con jardín Arzúa .
ATS optimization improves applicant nice—information at human resource outsourcing .
Just booked my first appointment with a Tacoma chiropractor! Thank you for the motivation and support, Car accident chiropractor Tacoma !