|
From: Darren D. <da...@da...> - 2004-03-25 11:59:08
|
I've just dropped a 1.0 final spring.jar into one of my projects that use= s Velocity and it now fails due to a change made in VelocityView (CVS revision 1.24) Prior to this version, the velocity context was initialized with: Context velocityContext =3D new VelocityContext(); VelocityEngineUtils.exposeModelAsContextAttributes(model, velocityContext= ); now, it's done with: Context velocityContext =3D new VelocityContext(model); and the relevant conversion method from VelocityEngineUtils has been remo= ved. What this means is any model object with a period (.) in the name is not altered to a velocity friendly underscore character (_) which VelocityEngineUtils used to do. Is there a reason this was done, or is there an alternative conversion method that I've overlooked? Velocity can still not handle names with periods so now any application that potentially adds such keys to the model map will break (as mine just has!) when Velocity is the view technology. Regards, --=20 Darren Davison Public Key: http://www.davison.uk.net/key.jsp |