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.
Household interaction is vital. The treatment group we discovered using assisted living gives regular updates and comfort.
If you choose a bright smile in Rock Hill, strive a whitening consultation at Rock Hill Family Dentist .
Such great advice about maintaining your new deck; makes me appreciate my future contractor even more! Charlotte Trex Deck Builder
Appreciate the detailed post on hotel renovations. I especially liked your point about cost management. Local contractors in Mystic could benefit from these insights. I wonder how local building codes influence these projects? cm at risk contractor new london
Appreciate the useful tips. For more, visit Minga Orthodontics .
Nicely done! Find more at Architects .
การติดตั้งง่ายจริงหรือไม่ ? สนใจ BT PREMIUM อยู่ครับ หลอด ไฟ ซีนอน
This was quite helpful. For more, visit emergency plumbers .
Mobile optimization is a must in today’s world! More tips at content marketing agencies .
Be sure plan ahead where essential utilities run underground potentially impacting future growth patterns established previously based upon existing structures premises already present!!! landscaping contractors near me
The comfort of riding with O’Hare Limo Service made my Lake Geneva getaway unforgettable! best car service to O’Hare
ไม่เคยผิดหวังกับการไปที่ OMG ONE MORE GLASS SAI1 เลย ทุกครั้งที่ไปสนุกมากๆ ร้านเหล้าสาวสวย สาย1
Prep your rubber seals; avoid contact with coating—nice safety checklist on mobile detail .
Appreciate the great suggestions. For more, visit local architects .
Termite barrier and monitoring by pest control service gave us peace of mind.
I was so impressed by a recent hardscape installation that included elegant stone pathways! It really enhanced the property—check out what’s available at affordable landscaping Skokie if you’re in Chicago!
Thanks for the heads-up on parking restrictions. commerical movers secured a permit for us.
Your checklist is excellent. We cross-referenced it with the guides on elderly care and felt confident choosing.
Thanks for pointing out the role of FMCSA regulations. traffic accident lawyer has a regulation overview.
Great conversation from hvac contractor —texts prior to arrival and clean timelines. Murrysville service achieved proper.
ตัดสินใจง่ายขึ้นเมื่อมีข้อมูลเปรียบเทียบสินค้าจากหลายแบรนด์ ### ร้านทําไฟรถยนต์ใกล้ฉัน
Vendor lock-in is actual. Software specialists from erp consulting services lend a hand layout moveable architectures to save possibilities open.
If your room faces north, get support. certified painting contractor gave me warm tones that counter the cool faded.