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.
just a test
just a test
For anyone needing a roof inspection in Wilmington NC, I recommend starting with roofers wilmington to find trusted, highly rated contractors.
just a test
After experiencing a flood, I was impressed at how much restoration job was needed. It’s vital to choose the right professionals who comprehend the complexities of calamity recuperation. Discover more about this procedure at affordable mold inspection in Bay Area .
Natural catastrophe menace modeling is so important now. Consider flood and earthquake accessories. More on CAT insurance: insurance adjuster services
Exceptional overview of timing belts vs chains. Precautionary replacement really settles. I set suggestions and scheduled service via engine repair cost to remain on track.
just a test
This was very enlightening. More at roofing contractors near meOzark Mountain Roofing .
This was very beneficial. For more, visit professional auto glass in Sanford .
just a test
If you’re seeking reputable demolition and excavation services, I extremely suggest taking a look at experienced building demolition contractor . They provide excellent services for all your building requires!
just a test
just a test
just a test
Great job! Discover more at marketing consultant san jose .
just a test
Nighttime safety lighting around the hot tub is key. Planning tips on hot tubs near me .
If you have rusty water, get a pro from trusted toilet repair in Santa Clara County to assess pipes.
This post demystifies disavow usage well. We relied on seo company , our seo company, for careful link analysis.
If you’re thinking about a custom oasis in the desert, top-rated pool home builders in Las Vegas can change your yard into a resort. I discovered Pool Builders Las Vegas handy for motivation and planning tips.
Excited to try their new advanced facial treatments available this season—American Laser Med Spa never disappoints! reliable medical spa service Texas Panhandle
This was quite helpful. For more, visit exterminator denver .
Your resolution for ceiling stains labored wonders. professional home painters near me blocked stains and delivered a uniform finish.
Thanks for shedding light on future-proofing roofs in Cork! Such a relevant topic! Flat roof repairs .