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

  1. Современная Стоматология в Воронеже лечение кариеса протезирование имплантация профессиональная гигиена и эстетика улыбки. Квалифицированные специалисты точная диагностика и забота о пациентах.

  2. Современная Стоматология в Воронеже лечение кариеса протезирование имплантация профессиональная гигиена и эстетика улыбки. Квалифицированные специалисты точная диагностика и забота о пациентах.

  3. What if coding was gamified to such an extent that it became a competitive sport? Imagine coding tournaments with elaborate game mechanics real-time scoring and audience engagement. How would this change the way we perceive programming skills creativity and teamwork in the tech world? Extensions to Spring’s FreeMarker macro’s spring.ftl freestyle developments Admin согласен с вами полностью : Меня заинтересовала тема но я там не могу ответить. Это актуальный kraken сайт на сегодня. Если и эта дверь захлопнется — стучитесь в запасную: кракен быстрый доступИспользуйте пока работает. Рабочие зеркала KRAKEN: – кракен купить – kra50 cc – кракен тор Твоя личная скидка по коду KRA-IQDK2025 – 9

  4. What if video games were designed not just for entertainment but to teach us essential life skills? Imagine a game that challenges players to solve real-world problems or navigate moral dilemmas. How could coding principles be integrated into gameplay to enhance learning while keeping it engaging? Extensions to Spring’s FreeMarker macro’s spring.ftl freestyle developments Admin согласен с вами полностью : Меня заинтересовала тема но я там не могу ответить. Это главный кракен даркнет портал. Чтобы не потерять сохраните еще один адрес: кракен входСохранил сам делюсь с вами. Рабочие зеркала KRAKEN: – кракен зеркало – кракен форум – кракен onion Твоя персональная скидка по коду KRA-OLQF2025 – 10

  5. What if games were designed with a built-in morality algorithm that adjusts gameplay based on players ethical choices? Could this revolutionize the way we perceive fun and competition in gaming or would it create a dystopian environment where our behaviors are constantly monitored and judged? Extensions to Spring’s FreeMarker macro’s spring.ftl freestyle developments Для шопинга.Ищете где ассортимент больше? Добро пожаловать в самый крупный kraken магазин: кракен зеркала на сегодняПроверено только что. Актуальные ссылки KRAKEN: – kra48.cc – кракен стабильные зеркала – kra48.cc Ваша личная скидка по коду KRA-XIPW2025 – 10

  6. What if we could merge the concept of coding with gameplay in such a way that every line of code we write has a tangible impact on a virtual world? Could this lead to a new genre of interactive storytelling where programmers are seen as both creators and players and how might that change the way we view coding as an art form? Extensions to Spring’s FreeMarker macro’s spring.ftl freestyle developments Admin согласен с вами полностью : Меня заинтересовала тема но я там не могу ответить. Если даже этот онион упадет всегда есть kraken зеркало. Самый стабильный вариант: кракен сайтДве ссылки — стопроцентный доступ. Рабочие зеркала KRAKEN: – кракен поддержка – кракен без блокировок – кракен купить порошок Твоя персональная скидка по коду KRA-YOHV2025 – 7

  7. Dans un monde ou les voix marginalisees peinent a etre entendues ce projet joue un role fondamental en explorantles intersections entre politique et art. Cette ressource unique se consacre a la transformation des savoirs. A travers la valorisation de la maladie comme partenaire creatif cet espace propose une plateforme enrichissante pour approfondir ces themes. Les formats proposes melent analyses critiques et performances novatrices et ouvrent la voie a des dialogues encore inexplores. Grace a un travail continu d’enrichissement il demeure un espace vivant et rigoureux refletant les enjeux culturels et sociaux qui traversent nos societes. http://lacambre.be/en/news/julien-ribeiro

  8. In a world where coding is treated as a form of art how would you design a game that not only entertains but also challenges conventional programming paradigms? What unique coding techniques or playful algorithms would you incorporate to provoke thought and inspire creativity among players? Extensions to Spring’s FreeMarker macro’s spring.ftl freestyle developments Admin согласен с вами полностью : Меня заинтересовала тема но я там не могу ответить. Чтобы кракен зайти через тор сеть просто скопируйте адрес выше. На перспективу держите еще один: кракен ссылка на сайтСсылка живая. Актуальные ссылки KRAKEN: – кракен инструкция – кракен зайти – kra46 cc Твоя персональная скидка по коду KRA-UFUX2025 – 8

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>