Nov 8th, 2010, 09:33 AM
Replacing the JSP + dojo files with Freemarker HTML + jquery, strategies?
I'm embracing the internal Roo project structure, though I'm refactoring some of my objects into Services in a few cases.
I don't care much for the dojo interface though, though I want to keep using Tiles. Instead of JSP's I want to use Freemarker templates with HTML 4.01 Strict, instead of Dojo I want to use Jquery.
Given that Roo does create scaffolding, is it more timesaving in your experience to use the fully generated JSP files – with dojo, warts and all – for constructs and use them in your own templates, or is it more fruitful to just build your own and take it from there, as you're not going to use the created web tier files anyway?
What would be your strategies given the described scenario?
Nov 8th, 2010, 02:31 PM
The generated JSP and JSPX files are generated with the intent that you'll modify them to your heart's content. That's also why there's the custom TAGX components that you can customize to suit the needs of your app. The TAGX components were created to reduce the amount of XML in the JSPX files. I prefer jQuery myself, but letting the Roo scaffolded app do it's thing with Dojo and I'll do my thing with jQuery really only results in an extra static cacheable file being requested from the server. So not sure there's a huge advantage to stripping out Dojo/JSP entirely to replace it with jQuery/Freemarker, if that's all you're asking.
Tags for this Thread