From: <jue...@we...> - 2003-03-06 10:06:41
|
Hi everybody, I've just finished the HTML escaping support and some minor tweaks of = the web package: - Reworked tags: Spring's custom tags have an optional boolean = "htmlEscape" property now, and there's a new htmlEscape tag for setting = a default value. For escaped Errors as returned by the hasBindErrors = tag, an Errors proxy is used, adding HTML escaping for affected methods. = - RequestContextUtils: JSP expressions can use simple utility methods in = RequestContextUtils for retrieving either escaped or plain versions of = Errors and messages, and the current Locale. ControllerServlet exposes a = locale attribute to the request now, analogous to the = WebApplicationContext. I've dissolved = com.interface21.web.bind.BindUtils, as its functionality is now covered = by RequestContextUtils. - RequestContext: An alternative approach, also suitable for Velocity = and JSTL, is using the new RequestContext and reading its properties. A = RequestContext instance can automatically get added as a request = attribute with a specified name (for convenient access) via = AbstractViews's new "requestContextAttribute" property. - Startup simplification: FrameworkServlet and thus ControllerServlet = implictly call ContextLoader now if no WebApplicationContext has been = initialized previously. This means that explictly declaring = ContextLoaderListener or ContextLoaderServlet in web.xml is entirely = optional now, at least if you do have one or more ControllerServlet = declarations with load-on-startup! - Context refresh: ApplicationContext has a new ContextRefreshedEvent = that gets published after initializing all beans. This allows for = implementing a respective listener bean that performs some startup work = using other beans, therefore needing all beans preinitialized instead of = just itself. An example is a custom configurer that reads some = administration config file outside of the application context and = populates respective properties of various beans. - Locale resolution: Correct locale attribute usage in all view = implementations. - Validation: Slightly polished API. Looking forward to your feedback! BTW, there's only one of my proposals left now: multipart request = handling. I will try to start work on it next week - expect a finished = initial solution the week after. Regards, Juergen |