Results 1 to 2 of 2

Thread: Replacing the JSP + dojo files with Freemarker HTML + jquery, strategies?

  1. #1
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default 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?

  2. #2
    Join Date
    Nov 2009
    Location
    Montreal, Quebec
    Posts
    398

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •