Velocity 2 « Web « Spring Q&A





1. Troubles with Velocity Toolbox    forum.springsource.org

Troubles with Velocity Toolbox I can't seem to get Velocity Toolbox set up correctly. I'm using VelocityLayoutViewResolver with VelocityLayoutView as my viewClass (which extends VelocityToolboxView). I am successfully using the date, ...

2. Velocity + MailPreparationException    forum.springsource.org

Velocity + MailPreparationException I have started using velocity and I made a simple unit test that runs great. I then deploy it to my container and I get this: Code: org.springframework.mail.MailPreparationException: ...

3. Velocity Macro springFormSingleSelect help    forum.springsource.org

Velocity Macro springFormSingleSelect help Hey guys, This is a question, I've got it working, but I'm not sure its the ideal method... I have a form that creates a select drop ...

4. Can i have 2 forms in velocity templates    forum.springsource.org

Hi all, Can i have 2 forms in velocity templates, if yes please provide me an small example or direct me to some link. Thanks

5. How can display an error on velocity template    forum.springsource.org

6. #springShowErrors velocity does not work !!!    forum.springsource.org

public void validate(Object object, Errors errors) { LoginBean login = (LoginBean) object; if(login.getName().equals("test")) errors.rejectValue("name","error.nottest"); } and i want to show errors in velocity temple using macro #springShowErrors("
" "error")

7. Velocity ViewRenderTool    forum.springsource.org

Velocity ViewRenderTool Hi All: I am trying to use the Velocity ViewRenderTool, which appears very useful in creating flexible macros. I have tried every permutation of configuration of the servlet context ...

8. Spring Velocity Development    forum.springsource.org

Spring Velocity Development I would like to be able to set my resourceLoaderPath to be pointing at the filesystem where the source files live, so that I can see the changes ...

9. Pagination in Velocity    forum.springsource.org

Hi Am using Velocity for my View and i need a pagination for a list of items and i have downloaded velocity tools version 2. i have started using pagertool for ...





10. how to configure Velocity and SpringResourceLoader?    forum.springsource.org

how to configure Velocity and SpringResourceLoader? I have been trying unsuccessfully to use org.framework.ui.velocity.SpringResourceLoader to enable Spring-style Resource loading with Velocity-1.5. VelocityEngineFactoryBean factory = new VelocityEngineFactoryBean(); factory.setPreferFileSystemAccess(false); Properties velocityProperties = new ...

11. spring-2.5.2 and velocity-tools-1.4    forum.springsource.org

Apr 14th, 2008, 01:32 PM #1 sbzoom View Profile View Forum Posts Private Message Junior Member Join Date Feb 2005 Location Wilmington, DE Posts 6 spring-2.5.2 and velocity-tools-1.4 Hello. I upgraded ...

12. How to use I18n with velocity    forum.springsource.org

13. Dynamic list bind with Velocity    forum.springsource.org

Dynamic list bind with Velocity I'm trying to do dynamic list binding with Velocity. First I define: Code: private List accessories = ListUtils.lazyList(new ArrayList(), FactoryUtils.instantiateFactory(Product.class)); After filling the list with some ...

14. define gloable variable in velocity    forum.springsource.org

hi, I want to define a global variable so it is visible to all velocity template. is that possible to do that ? any idea ? kiwi ---- happy hacking ! ...

15. velocity and URLResourceLoader trouble    forum.springsource.org

velocity and URLResourceLoader trouble how do i load velocity templates over http via the URLResourceLoader ?. i can successfully load using the FileResourceLoader with this velocityConfig in my springapp-servlet.xml

16. Spring + Multiple Velocity template Libraries    forum.springsource.org

Spring + Multiple Velocity template Libraries Hi, I have developed an application using Spring MVC with Velocity templates and all is great. However, there is a requirment to have an unbranded ...





17. getting taglibs wrapper to work in velocity views?    forum.springsource.org

getting taglibs wrapper to work in velocity views? Is there anyone succesfully using org.springframework.security.taglibs.velocity.Auth zImpl with spring security 2.0.4 and spring 2.5.5? Here's what's in my spring-servlet.xml: Code:

18. AbstractSearchTool [Velocity + Spring WEB]    forum.springsource.org

Hi, I want to create a pagination on a simple table in my web app using Velocity Tool, however I didn't found anything that help me. I found something related to ...

19. Velocity Configuration    forum.springsource.org

Velocity Configuration Hi ! Im trying to configure a spring portlet using Velocity. The portlet is to be run under Liferay, I dont know if this is a important fact or ...

20. Velocity resouce not found!    forum.springsource.org

I'm using spring with velocity to make E-mail template, and I put all *.vm files in /WEB-INF/templates/mail, not else location. VelocityEngine bean is: Code: ...

21. Velocity cannot find resource after upgrade    forum.springsource.org

Velocity cannot find resource after upgrade Hi, I have a osgi bundle that is running perfect in Spring DM Server 1.0.0 RELEASE. However, after I upgrade to SpringDM Server 1.0.2 REPLEASE. ...

22. Cannot find Velocity template    forum.springsource.org

Cannot find Velocity template Hi, I'm new to velocity. I'm converting my existing jsp's to vtls in spring. I'v added the following bean definitions in my test-servlet.xml Code: ...

23. How to show *.jpg file using velocity with spring ?    forum.springsource.org

How to show *.jpg file using velocity with spring ? I'm using velocity as view, but i don't understand with configuration, if in my form include other file like jpg or ...

24. Setting content encoding in Velocity    forum.springsource.org

Setting content encoding in Velocity For performance reasons I recently decided to switch from using JSP views to Velocity. This has worked great so far, and the response time decreased significantly. ...

25. Velocity problem in Spring DM.    forum.springsource.org

Velocity problem in Spring DM. Hi, I am using spring DM target platform for hosting a web bundle and I have used velocity as part of the web application. The web ...

26. Velocity Index page not resolving    forum.springsource.org

Velocity Index page not resolving Code: ...

27. Pre-load Velocity file with additional macros    forum.springsource.org

Hi, There is a file with macros (spring.vm) that gets preloaded for usage by default. How can I add additional velocity file with my custom macros? Thanks.

29. How to enable Velocity-style syntax in spring??    forum.springsource.org

30. Can't find Velocity Templates    forum.springsource.org

Feb 3rd, 2010, 07:35 PM #1 ryan_ny View Profile View Forum Posts Private Message Junior Member Join Date Feb 2010 Posts 2 Can't find Velocity Templates Hi All, I am having ...

31. springMacroRequestContext.getMessage appears in a velocity template    forum.springsource.org

Hi, I have a velocity template that suddenly displays this springMacroRequestContext.getMessage(..) instead of the message. I have a plain ParameterizableViewController controller with a message code passed in the request String code ...

32. Using both JSP and Velocity    forum.springsource.org

Using both JSP and Velocity Hello, here is part of my Spring config file:

33. using Velocity view problem    forum.springsource.org

using Velocity view problem Hello, I get the following error: Code: ApplicationContextException: Cannot find Velocity template for URL [WEB-INF/velocity/sourceadd.vm]: Did you specify the correct resource loader path? I use both JSP ...

34. Using Spring/Velocity to generate dynamic subject, from fields.    forum.springsource.org

Using Spring/Velocity to generate dynamic subject, from fields. This is my goal at the moment, while velocity does a great job of generating dynamic email text, and spring is configured to ...

35. Encoding problem in velocity    forum.springsource.org

Hi , I am using velocity engine to read a template and and generate a document like the template,but i have a problem that if my data is russian(Cyrllic) then data ...

36. velocity .vm resource not found    forum.springsource.org

velocity .vm resource not found Hi, I am working on a web project where i need to send scheduled mails. I am using velocity 1.5 for mail formats. The velocity configuration ...

37. org.apache.velocity...ResourceManagerImpl does not implement ResourceManager    forum.springsource.org

org.apache.velocity...ResourceManagerImpl does not implement ResourceManager Hi all, I am new to velocity and I am using it for email template (as jsp's wn't). I am getting error while starting the server. ...

38. Spring + Velocity    forum.springsource.org

I am using velocity with Spring. Can i copy .vm fie in some location instead of classpath and give pathname + .vm file name as one of the templateLocation parameter for ...

39. Velocity Macro - Select List    forum.springsource.org

Velocity Macro - Select List Code: #** * springFormSingleSelect * * Show a selectbox (dropdown) input element allowing a single value to be chosen * from a list of options. * ...

40. Velocity error with latest #springBind macro    forum.springsource.org

Velocity error with latest #springBind macro Using a nightly build from August 11th, the #springBind($path) velocity macro works fine. Here's what I have in my form. Code:

#springBind("user.id") ...

41. Unable to use macros with velocity ?    forum.springsource.org

Unable to use macros with velocity ? greetings all i am using velocity templates when sending emails and i want to read texts dynamically from property files depending on user locale ...

42. Arabic is displayed as ????? in velocity template    forum.springsource.org