Extensions to Spring’s FreeMarker macro’s (spring.ftl)

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:

  1. 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)
  2. 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:
  3. Show errors in an ordered/unordered list, automatically detecting zero messages and not outputting markup if this is the case
  4. 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
  5. 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.

21,229 thoughts on “Extensions to Spring’s FreeMarker macro’s (spring.ftl)

  1. Does anyone know if other jewelry types are accepted too? While at Pawn Jewelry – Aventura with my Rolex, I saw quite a few customers bringing in gold bracelets as well—seems pretty versatile! Pawn Shop near me

  2. Your expertise in handling car accident cases is truly commendable! I’d love to learn more about how accident lawyer can assist those in need of legal guidance after such incidents.

  3. Elusive shipwreck found in Lake Michigan over 100 years after sinking rutor сайт A “ghost ship” that sank in Lake Michigan nearly 140 years ago and eluded several search efforts over the past five decades has been found according to researchers with the Wisconsin Underwater Archeology Association. The wooden schooner got caught in a storm in the dead of night and went down in September 1886. In the weeks after a lighthouse keeper reported the ship’s masts breaking the lake surface and fishermen caught pieces of the vessel in their nets. Still wreck hunters were unable to track down the ship’s location — until now. https://rutordark63xripv2a3skfrgjonvr3rqawcdpj2zcbw3sigkn6l3xpad.net rutordeepeib6lopqoor55gfbnvh2zbsyxqpv5hnjg2qcji2x7sookqd onion Earlier this year a team of researchers with the Wisconsin Underwater Archeology Association and Wisconsin Historical Society located the shipwreck off the coastal town of Baileys Harbor Wisconsin the association announced on Sunday. Named the F.J. King the ship had become a legend within the Wisconsin wreck hunter community for its elusive nature said maritime historian Brendon Baillod principal investigator and project lead of the discovery. “We really wanted to solve this mystery and we didn’t expect to” Baillod told CNN. “The ship seemed to have just vanished into thin air. … I actually couldn’t believe we found it.” The wreck is just one of many that have been found in the Great Lakes in recent years and there are still hundreds left to be recovered in Lake Michigan alone according to Baillod. The ‘ghost ship’ Built in 1867 the F.J. King plied the waters of the Great Lakes for the purpose of trans-lake commerce. The ship transported grains during a time when Wisconsin served as the breadbasket of the United States. The 144-foot-long 44-meter vessel also carried cargo including iron ore lumber and more. The ship had a lucrative 19-year career until that September night when a gale-force wind caused its seams to break apart according to the announcement. The captain William Griffin ordered the crew to evacuate on the ship’s yawl boat from where they watched the F.J. King sink bow first.

  4. Elusive shipwreck found in Lake Michigan over 100 years after sinking рутор ссылка A “ghost ship” that sank in Lake Michigan nearly 140 years ago and eluded several search efforts over the past five decades has been found according to researchers with the Wisconsin Underwater Archeology Association. The wooden schooner got caught in a storm in the dead of night and went down in September 1886. In the weeks after a lighthouse keeper reported the ship’s masts breaking the lake surface and fishermen caught pieces of the vessel in their nets. Still wreck hunters were unable to track down the ship’s location — until now. https://rutor24x7to.top rutor ссылка Earlier this year a team of researchers with the Wisconsin Underwater Archeology Association and Wisconsin Historical Society located the shipwreck off the coastal town of Baileys Harbor Wisconsin the association announced on Sunday. Named the F.J. King the ship had become a legend within the Wisconsin wreck hunter community for its elusive nature said maritime historian Brendon Baillod principal investigator and project lead of the discovery. “We really wanted to solve this mystery and we didn’t expect to” Baillod told CNN. “The ship seemed to have just vanished into thin air. … I actually couldn’t believe we found it.” The wreck is just one of many that have been found in the Great Lakes in recent years and there are still hundreds left to be recovered in Lake Michigan alone according to Baillod. The ‘ghost ship’ Built in 1867 the F.J. King plied the waters of the Great Lakes for the purpose of trans-lake commerce. The ship transported grains during a time when Wisconsin served as the breadbasket of the United States. The 144-foot-long 44-meter vessel also carried cargo including iron ore lumber and more. The ship had a lucrative 19-year career until that September night when a gale-force wind caused its seams to break apart according to the announcement. The captain William Griffin ordered the crew to evacuate on the ship’s yawl boat from where they watched the F.J. King sink bow first.

  5. Inquiring minds want answers regarding best practices when implementing reliable strategies ensuring successful outcomes throughout multiple channels employed successfully over time…would love feedback surrounding experiences gained while exploring vacuum excavation orange county

  6. Elusive shipwreck found in Lake Michigan over 100 years after sinking rutordark63xripv2a3skfrgjonvr3rqawcdpj2zcbw3sigkn6l3xpad onion A “ghost ship” that sank in Lake Michigan nearly 140 years ago and eluded several search efforts over the past five decades has been found according to researchers with the Wisconsin Underwater Archeology Association. The wooden schooner got caught in a storm in the dead of night and went down in September 1886. In the weeks after a lighthouse keeper reported the ship’s masts breaking the lake surface and fishermen caught pieces of the vessel in their nets. Still wreck hunters were unable to track down the ship’s location — until now. https://rutor24-to.com rutor forum Earlier this year a team of researchers with the Wisconsin Underwater Archeology Association and Wisconsin Historical Society located the shipwreck off the coastal town of Baileys Harbor Wisconsin the association announced on Sunday. Named the F.J. King the ship had become a legend within the Wisconsin wreck hunter community for its elusive nature said maritime historian Brendon Baillod principal investigator and project lead of the discovery. “We really wanted to solve this mystery and we didn’t expect to” Baillod told CNN. “The ship seemed to have just vanished into thin air. … I actually couldn’t believe we found it.” The wreck is just one of many that have been found in the Great Lakes in recent years and there are still hundreds left to be recovered in Lake Michigan alone according to Baillod. The ‘ghost ship’ Built in 1867 the F.J. King plied the waters of the Great Lakes for the purpose of trans-lake commerce. The ship transported grains during a time when Wisconsin served as the breadbasket of the United States. The 144-foot-long 44-meter vessel also carried cargo including iron ore lumber and more. The ship had a lucrative 19-year career until that September night when a gale-force wind caused its seams to break apart according to the announcement. The captain William Griffin ordered the crew to evacuate on the ship’s yawl boat from where they watched the F.J. King sink bow first.

  7. Elusive shipwreck found in Lake Michigan over 100 years after sinking rutorforum24x7 to A “ghost ship” that sank in Lake Michigan nearly 140 years ago and eluded several search efforts over the past five decades has been found according to researchers with the Wisconsin Underwater Archeology Association. The wooden schooner got caught in a storm in the dead of night and went down in September 1886. In the weeks after a lighthouse keeper reported the ship’s masts breaking the lake surface and fishermen caught pieces of the vessel in their nets. Still wreck hunters were unable to track down the ship’s location — until now. https://rutorforum24.com rutor-24forum com Earlier this year a team of researchers with the Wisconsin Underwater Archeology Association and Wisconsin Historical Society located the shipwreck off the coastal town of Baileys Harbor Wisconsin the association announced on Sunday. Named the F.J. King the ship had become a legend within the Wisconsin wreck hunter community for its elusive nature said maritime historian Brendon Baillod principal investigator and project lead of the discovery. “We really wanted to solve this mystery and we didn’t expect to” Baillod told CNN. “The ship seemed to have just vanished into thin air. … I actually couldn’t believe we found it.” The wreck is just one of many that have been found in the Great Lakes in recent years and there are still hundreds left to be recovered in Lake Michigan alone according to Baillod. The ‘ghost ship’ Built in 1867 the F.J. King plied the waters of the Great Lakes for the purpose of trans-lake commerce. The ship transported grains during a time when Wisconsin served as the breadbasket of the United States. The 144-foot-long 44-meter vessel also carried cargo including iron ore lumber and more. The ship had a lucrative 19-year career until that September night when a gale-force wind caused its seams to break apart according to the announcement. The captain William Griffin ordered the crew to evacuate on the ship’s yawl boat from where they watched the F.J. King sink bow first.

  8. Appreciate the content refresh tactics. Updating stats, FAQs, and adding unique visuals revived decaying posts. I track refresh ROI with this simple sheet: SEO Company

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>