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:
- 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)
- 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: - Show errors in an ordered/unordered list, automatically detecting zero messages and not outputting markup if this is the case
- 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
- 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.
I found this very interesting. Check out best plastic surgeon for more.
Tôi thường xuyên giới thiệu bạn bè đến với Vi68, họ đều hài lòng! Vi68
Bắn cá đổi thưởng thực sự là một trò chơi thú vị, đặc biệt khi chọn nhà cái uy tín như bancadoithuong.com.de .
Rất nhiều bạn bè của tôi đã tham gia vào nền tảng của HAYBET và đều hài lòng! https://haybet.uk.com/
You covered the impact of automation on GDP potential well. I model effects at RPG .
“Just wanted to share how satisfied I am with the service from Saguaro Air Solutions LLC!” HVAC contractor
Don’t underestimate the value of having legal support after an accident; it’s invaluable! car accident lawyer
Kết quả trận đấu luôn được cập nhật nhanh chóng và chính xác trên nền tảng của #SA079 ! SAO789
Sự hào hứng mỗi lần đặt cược trên cobra chưa bao giờ giảm đi trong suốt thời gian qua #$$$ COBET
Cảm giác hồi hộp khi theo dõi trận đấu cùng với việc đặt cược trên gem thật sự thú vị vô cùng ! ### anyKeyWord ### https://gem88.in.net/
Đã thử qua vài nhà cái nhưng chỉ thấy hài lòng với 7m mà thôi.
Hay88 thường xuyên tổ chức các giải đấu hấp dẫn, bạn đã tham gia chưa? hay88
Nhà cái này có hỗ trợ nạp tiền qua ví điện tử hay không? 23win.hiphop
Cám dỗ quá lớn từ những kèo thơm mà 789P mang lại khiến mình khó lòng cưỡng lại được! 789P
Chắc chắn rằng tôi sẽ tiếp tục ủng hộ Thabet trong tương lai! Thabet
Đã từ lâu tôi không tìm thấy trang nào đáng tin cậy như kèo nhà cái 5 để theo dõi kèo nhà cái.
I liked the neat workmanship from heater installation on my duct repair in Murrysville.
Hãy cùng nhau khám phá thế giới giải trí đầy màu sắc từ gun888 ngay hôm nay nhé!! # # anyKe gun88 tài xỉu
The content on sentencing departures is helpful. Argue for leniency with Car Accident Lawyer .
Great reminder about GFCI and AFCI testing in new homes. Safety testing overview at termite inspection .
.. Chúc mừng các chiến thắng đến từ nhà cái ev88
Cảm ơn bạn đã chia sẻ thông tin về kèo nhà cái uy tín. Mình sẽ khám phá thêm về các lựa chọn cá cược online. kèo trực tuyến
Hy vọng rằng trang web uy tín như vậy sẽ ngày càng phát triển mạnh mẽ hơn nữa trong tương lai gần .## anyKeyWord ## 868vip