This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Velocity for interactive applications

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks:

I had a couple of quick questions (actually, mainly one question) I was hoping someone with knowledge of Velocity could answer.

From what I have been reading, Velocity essentially provides a markup or template language which is then consumed by an engine which can then fill in the references and conditional statements to generate HTML by using the declared references to java objects. Which essentially means that, like a JSP, this is all stuff that happens before the page is rendered.

Does Velocity (or its related projects) support any client->java method mapping, or any action mapping at all? I'm looking for the kind of functionality where the framework provides you with either an automatic mapping or establishes conventions that make mapping mouseclicks to java method calls (maybe involving AJAX, maybe not) easy.

-carlos
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mouse clicks? Velocity doesn't even know what a mouse *is*, so without knowing more, I don't really know how to answer your question. JSP doesn't know what a mouse is either--both take a context and a template and make text out of it. What are you really trying to do?
 
Carlos M Rodriguez
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe I should have explained myself in simpler terms, but I just needed to know if Velocity had any facilities to send UI events to the java side from the Javascript side (action mappings, command mapping, what have you, think Wicket, DWR, JSF, etc). But it has become clear to me that this is completely outside the scope for Velocity.

Thank you.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. Since it can create anything, you could obviously wrap that stuff up, but there's certainly nothing out of the box.
 
What a show! What atmosphere! What fun! What a tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!