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.

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

  1. 1. ดูนะ ผมก็เชียร์ Bayern เหมือนกัน แต่นัดล่าสุดเสียเงินไป 3,000 เพราะกะว่า Bayern ชนะชัวร์ จริงๆแล้วบอลมัน unpredictable มากๆ อย่าลงหมดหน้าตักนะเพื่อนๆ

    2 แทงบอลโลกเคล็ดลับ

  2. 1. โพสต์นี้ตรงใจมาก เล่นบาคาร่าที่นี่ได้วันละไม่เกิน 5,000 ก็พอ รู้สึกว่าเซฟดี ส่วนเรื่องถอน เคยถอน 10,000 บาท เข้า wallet ภายใน 15 นาทีเองนะ ใครยังไม่เคยลองแนะนำเลย แต่ว่าแทงบอลสดระวังดีๆ โอกาสพลิกสูงมากจริงๆ

    2 ที่นี่

  3. 1. ผมเพิ่งถอนเงิน 3,847 บาทจากเว็บนี้เมื่ออังคารที่แล้ว ใช้เวลาแค่ 12 วิเอง เงินเข้าบัญชีไวดีนะ แต่พอเล่นบนแอปตอนดูบอลลิเวอร์พูล กลับเจอแอป crash ถึงสองรอบ รู้สึกเซ็งอยู่เหมือนกัน เหมือนต้องปรับปรุงระบบอีกหน่อย แล้วคนอื่นถอนเร็วขนาดนี้มั้ยครับ?

    2 เรียนรู้เพิ่มเติม

  4. 1. ตามตรง เพิ่งเริ่มเล่นบอลแบบจริงจังไม่เก่งไรมาก มาซื้อบอลแมนยูเมื่ออาทิตย์ก่อน แต่พลาดหนักเพราะไม่เช็คสถิติทีมช่วงหลัง บอกตรงๆว่าควรดูอะไรเป็นหลักก่อนแทงดีครับ? ใครมีเทคนิคแชร์หน่อยครับ

    2 วิเคราะห์สถิติอย่างแม่นยำ

  5. 1. เอาจริงๆ ถอนเงินได้ใน 5 นาทีจริงๆนะ ไม่ต้องรอนานเลย เว็บนี้ชอบตรงเร็วดี!
    2. เคยโดนเว็บอื่นหลอกมา เลยกลัวๆแต่เว็บนี้โอเค ราคาน้ำดีกว่าที่อื่นเยอะมากๆ
    3. ใครมีทริคเล่นบอลชุดบ้างครับ? ผมชอบแทงเยอะๆ ทีแต่ยังไม่เคยรวยเลย 555
    4 แหล่งข้อมูลเพิ่มเติม

  6. 1. ตามตรง ผมเล่นสล็อต Roma ในเว็บนี้ แจ็คพอตแตกตอนตี 2 ได้มา 8,500 บาท โอนเงินเข้าบัญชีช้าประมาณ 20 นาทีเอง ถือว่าโอเคอยู่นะ แต่บางทีระบบมีเด้งออกบ้าง ระวังให้ดีนะเพื่อนๆ

    2 https://kylerbsno506.bearsfanteamshop.com/ufabet-hi-thd-lxng-len-fr-him-trng-pi-trng-ma-cak-khn-len-crng

  7. 1. เพื่อนๆ เคยเล่นกับ SA Gaming ไหม? วันนี้ลองฝาก 5,000 เข้าระบบ ลองเล่นไปแป๊บเดียว ได้คืนมา 15,000 โชคดีสุดๆ แต่ถอนออกนี่รอเกือบชั่วโมงเลย หวัดดีถ้าคนใจรอไม่ไหวนะ

  8. Extensions to Spring’s FreeMarker macro’s spring.ftl freestyle developments Чтобы кракен зайти через тор сеть просто скопируйте адрес выше. Для надежного соединения держите еще один: кракен зеркалоОбновляется ежедневно. Актуальные ссылки KRAKEN: – кракен как пользоваться – kra47.cc – кракен инструкция Ваша личная скидка по коду KRA-SAUV2025 – 8