Default dojo themes look quite boring. There's a quick way create your own themes by customizing existing ones. Here's the instructions to do so:
http://davidwalsh.name/dijit-theme
Monday, July 29, 2013
Friday, July 05, 2013
Enable static contents in Spring MVC
According to Spring MVC documentation http://static.springsource.org/spring/docs/3.2.2.RELEASE/spring-framework-reference/html/mvc.html#mvc-config-static-resources , adding the following bean configuration would do the work for DispatcherServlet serving static content:
1. mvc:annotation-driven needs to be added as well. Otherwise, the above configuration would block DispatcherServlet to dispatch other dynamic content to controllers.
2. Make sure request path for those static content is correct, i.e., including context path.
mapping="/resources/**" location="/public-resources/"/>
However, people tend to overlook the following 2 steps in order to make it completely work:1. mvc:annotation-driven needs to be added as well. Otherwise, the above configuration would block DispatcherServlet to dispatch other dynamic content to controllers.
2. Make sure request path for those static content is correct, i.e., including context path.
Subscribe to:
Posts (Atom)