Re: multiple "regions" in 2-phase layout render views

2015-03-02 Thread Christopher Townson
oops :) good idea, Nathan -- please see https://gist.github.com/corinthino/44fd09e730d08ab44dfb On 3 March 2015 at 01:10, Nathan Bubna wrote: > Chris, > > The attached was not attached. :) Can you put it in a gist or something? > > -nathan > > On Fri, Feb 27, 2015 at

multiple "regions" in 2-phase layout render views

2015-02-27 Thread Christopher Townson
Hi, I have an app that is using Velocity with a 2-phase layout render (using Spring VelocityLayoutView in this case). However, Spring's layout view effectively restricts you to having just the one "screen_content" area in the layout. What I wanted to be able to do was have an arbitrary number of "

velocity eclipse plugins, VTL grammar, XText

2014-09-25 Thread Christopher Townson
Hi all, I've long thought that the Velocity could do with a better editor plugin for Eclipse. I know there are a 2 or 3 out there already (veloedit being my usual plugin of choice) but they're beginning to look a bit outdated next to some of the rather nice XText-based editors I've seen for things

Re: a programming exercise integrating velocity with spring ... for general interest of this list

2012-05-11 Thread Christopher Townson
... and, of course, anyone is now free to make the necessary changes for this, should they wish :) Cheers, Chris On 12 May 2011 01:05, Nathan Bubna wrote: > On Wed, May 11, 2011 at 3:51 PM, Christopher Townson > wrote: >> The source jar can be obtained from >> http://christop

Re: Validate templates before use

2012-02-06 Thread Christopher Townson
this was also mentioned in a recent thread, which may be what you are looking for: http://code.google.com/p/velocity-validator/ Chris On 6 February 2012 15:16, Chad La Joie wrote: > On Mon, Feb 6, 2012 at 10:14, Nathan Bubna wrote: >> Pre-validating templates would fall in the "advanced uses"

Re: debug listing

2011-11-06 Thread Christopher Townson
ContextTool is probably what you're after ... http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/view/tools/ContextTool.html On 6 November 2011 15:18, Mark Fenbers wrote: > Is there a way from within a template to list all of the variables that have > been exposed to

Re: Properties that are classes

2011-10-09 Thread Christopher Townson
if you have public class UserData { private Address address; public Address getAddress() { return address; } } public class Address { private String line1; public String getLine1() { return line1; } } In your template ... $userData.address.line1 or $userData.getAddress()

Re: Properties that are classes

2011-10-09 Thread Christopher Townson
On 9 October 2011 13:07, Andrew Ducker wrote: > Can I have a sub-class? > yes - the object graph can be any depth you like - To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...

Re: a programming exercise integrating velocity with spring ... for general interest of this list

2011-05-12 Thread Christopher Townson
> Spring and Velocity are both under the Apache license.  So, licensing > something that integrates the two under the GPL is a non sequitur. > And this is an Apache list, so you're going to get a little Apache > sermon, like it or not. > I expected nothing less :) The non-sequiter argument, vis-a

Re: a programming exercise integrating velocity with spring ... for general interest of this list

2011-05-11 Thread Christopher Townson
r us in future spring/velocity projects.  Apache or BSD > licensing would be great. :) > > On Wed, May 11, 2011 at 3:00 AM, Christopher Townson > wrote: >> I thought some on this list might like to know about a small "glue >> library" I wrote recently as a programming

a programming exercise integrating velocity with spring ... for general interest of this list

2011-05-11 Thread Christopher Townson
I thought some on this list might like to know about a small "glue library" I wrote recently as a programming exercise for integrating Velocity with Spring and released on GPL for any interested parties: http://christophertownson.com/projects/spring-velocity/ I have often thought that the integra

Re: How can I learn velocity?

2007-08-17 Thread Christopher Townson
Nitin Lokhande wrote: > Can anybody provide me enough learning material for velocity? > I really want to learn it in just 2 or 3 days. > Please help. > > Thanks, > Nitin Lokhande. > Hi Nitin, The user guide can be found here: http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.ht

Re: javax.servlet.jsp.JspException: Error initializing Velocity: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'menu.vm'

2007-08-06 Thread Christopher Townson
>>> On 8/2/07, nageshyakkanti <[EMAIL PROTECTED]> wrote: Hi, >>> [snip] >>> my velocity.properties is as follows resource.loader = classpath >>> file.resource.loader.description = File Resource Loader >>> file.resource.loader.class = >>> org.apache.velocity.runtime.resource.loader.FileResourceLo

Re: How to configure VelocityServlet to answer specific context?

2007-08-01 Thread Christopher Townson
On 8/1/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: Change the url-pattern under the servlet-mapping for the velocity servlet to "/velocity/*" instead of "*.vm" Joe Kramer wrote: That doesn't help, I still get velocity template on any URL, and navigating to /velocity/ produces Exception: org.apa