This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Just wanted to share to value information with regards to developing custom tags such as custom validators. Im currently developing an intranet system using Spring, Hibernate, JSF IceFaces and Facelets templating.
More so I created a custom validator and assigned the validator to the page:
For reason the validator <my:beforeDateValidator than="startDate" /> was never created which resulted in the validator never being fired. I double-checked EVERYTHING from my page declaration namespace to the faces-config.xml declaration to my tld file, everything seemed to be fine (As per a traditional JSP app structure).
Anyways.... As I am a newbie to using Facelets i finally discovered that when using Facelets a seperate declaration file is required to get the custom validator to work:
Hi Tim, thats 100% but for custom validators/convertors that make use of attributes, a *.taglib.xml file is required, otherwise the view handler ie.: com.icesoft.faces.facelets.D2DFaceletViewHandler won't render/create the custom validator/convertor.