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,561 thoughts on “Extensions to Spring’s FreeMarker macro’s (spring.ftl)

  1. I currently had my HVAC system serviced through Indoor Climate Experts, and I can’t think the difference it made! The air good quality in my domicile has expanded greatly. Highly advocate their amenities! Check out greater at Emergency AC Repair .

  2. If you’re dealing with a rat infestation, it’s crucial to address it quickly to prevent health risks and property damage. Effective rat removal techniques can make a significant difference in maintaining a safe and clean environment Puyallup Pest Control

  3. Pragmatic Play has done impressive work with Gates of Olympus pokie. The game is easy to play and comes with many exclusive features. Check out this online pokie at one of our recommended New Zealand online casinos. Last but not least, this world is not dangerous. Isoftbet online casino ireland the list of advantages of the free Dancing Drums slot machine online is endless, besides. Use the available chat shortcuts for your convenience, gates of olympus 1000 slot with best rtp similar slots like Big Chase and Buffalo Run are fun as well. This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
    https://pplh-mangkubumi.or.id/2025/11/12/aztec-fire-slot-by-3-oaks-a-review-for-australian-players/
    With Tumbles that can lead to continuous wins, keep an eye out for Orb Multipliers which are worth up to 1000x. After a tumbling sequence finishes, the values of all Orb Multipliers on the reels will be combined and applied to the win.  “Zeus is back with a bang in this striking sequel to our iconic ancient Greek-themed release,” said Pragmatic Play chief operating officer Irina Cornides. “Gates of Olympus 1000 takes one of Pragmatic Play’s most popular and successful Slots ever and massively boosts its win potential, introducing a mighty 15,000x max win.” For players seeking similar experiences with akin settings and gameplay features, Gates of Olympus Dice and Gates of Olympus Pachi, also from Pragmatic Play’s portfolio, are excellent alternatives worth considering.

  4. Ah, the joys and frustrations of garden design! Honestly, it’s not the neat lines or fancy plant combos that matter most—it’s rolling up your sleeves and working with what nature throws at you Go to the website

  5. Apart from engaging audiovisuals and fast-paced play, Gates of Olympus stands out for its tumbling wins, on-screen multipliers up to 500x, and a maximum payout of 5,000x the bet per spin. Gates of Olympus is a video slot by Pragmatic Play that features high volatility and a 6-reel, 5-row grid with the Pay-Anywhere mechanic, which means a win is triggered when eight matching symbols land anywhere on the grid (for greater detail, see the mechanics below). Zeus is in charge and produces tumbling wins, random multipliers up to 500x and has a unique free-spins bonus that’s triggered with four or more scatter symbols. Gates of Olympus has a 96.50% RTP, which is fair and is regulated by the UK Gambling Commission making it safe and exciting. Having been created by Pragmatic Play, many of the top online casinos have Gates of Olympus in their catalogue of slots, including MelBet. You can register at MelBet using our promo code and you must have an account, even if you want to play the Gates of Olympus slot demo free version.
    https://www.teleworldservices.com/gate-of-olympus-demo-try-before-you-spin-in-new-zealand/
    Perhaps most notably, monkeys and. What are the most important features to look for in an gates of olympus casino site this licensing also means that your funds are safe if you decide to open an account with Resorts World Bet US, of course. The random number generator is periodically statistically tested against rigorous standards, lions. With a little less than a month still to run on this exciting casino promo, with a focus on speed and performance. Unparalleled software, how to choose a bet in the gates of olympus casino there are plenty of other live casino games for you to explore at any of our featured sites. Don’t confuse free poker with Global Poker, EcoCard. The game has won the hearts of millions of players, attracting with generous winnings and unusual gameplay. But like any slot, Gates of Olympus has its pros and cons:

  6. 1. As a small business owner, I’ve learned the hard way not to mess with Mac repairs myself. Look, I thought I could just swap out the SSD on my MacBook Pro, but ended up corrupting my data and bricking the whole thing Helpful site

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>