Spring Roo – Javascript library support
I have been trying to customize the automated views generated by Spring Roo’s scaffold commands. This is when I have noticed that Roo is using Dojo as the default javascript library in the JSPs. After little bit of poking, I have come to realize that Roo does not provide any option to choose the preferred Javascript library. I can work my way thru Dojo. However, I am more comfortable with jQuery because most of the projects and clients I am engaged with are asking for jQuery in particular. I am pretty sure that there are many other users out there, who are more comfortable with other JS framework(s). While Dojo is a reputed and widely adopted library, there are many organizations that have standardized on jQuery and YUI as their preferred Javascript frameworks. Considering the flexibility and the command line based code generation feature of Roo, here is a feature request for Spring. During the project creation, an option can be provided to specify the preferred Javascript framework to use. This will increase the adoption of Spring Roo by many fold. It is not pragmatic to expect Roo to support every library in use. However, I think that it is reasonable to support at least top 3 widely adopted JS libraries to increase the “usability” of Roo in the enterprise world.

Leave a Reply