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.

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

  1. 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://rutordeepeib6lopqoor55gfbnvh2zbsyxqpv5hnjg2qcji2x7sookqd.com 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.

  2. 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://rutorforum24.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.

  3. Thanks for sharing your thoughts. I really appreciate your efforts and I will be
    waiting for your next write ups thank you once again.

  4. Кстати, если вас интересует Навигатор финансовых решений: от ипотеки до инвестиций, загляните сюда.

    Вот, можете почитать:

    https://financialonline.ru

  5. The idea of seasonal menu inserts is brilliant—keeps things fresh without reprinting the whole menu! Print FX made our seasonal updates a breeze, and I got inspired by signs and banners ’s suggestions.

  6. I recently hired Tampa Bay Pressure Washing for a deep clean of my home’s exterior, and I couldn’t be more pleased with the results! Their team arrived promptly and was incredibly professional throughout the entire process. soft wash roof

  7. Jumping into crypto on beginner-friendly US exchanges? Expect a mixed bag. Sure, platforms like Coinbase and Binance.US shine with straightforward UIs and decent educational resources. Great for that “dip your toes” phase without feeling overwhelmed https://atavi.com/share/xklto5z5ddju

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>