Hi, > Subject: Re: [veltools] Proposed list of tools
Hmm, just a quick remark: Velocity is the View part of an MVC architecture. That should also be reflected in the functionality of Velocity. Most of the proposed functionality has little to do with the presentation layer. It is the Model that needs to return the data in the correct format. Take your proposed I18NTool: the correct design is that your Controller send a Locales parameter to your Model, so that the Model can format your data in an I18N fasion, and return it as such to the View. The same applies to most of the requested functionality: it is the Model that needs to take care of all these things, which it already can, as the Model is essentially pure Java code, so you have the huge Java API at your disposal to do whatever you want with your data. Any time you think: "Well, if only Velocity had this or such feature, this would be a no-brainer", you should rethink your design, and see if your Model actually returns the data in the correct format to the View. Make sure the Model returns either a JavaBean, or a Collection of JavaBeans to the View, and you'll find Velocity has ALL the functionality you could wish for. Regards, Koen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
