• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Velocity macro question -- How to create the password input field in the .VM file

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a Spring project where I'm trying to get the password <input> to match the Velocity macro that was defined, but I'm new to velocity.

The Macro looks like this:

#macro(passwordInput, $path, $attributes)
#springBind($path)
<input type = "password" id="${status.expression}" name="${status.expression}" value="${attributes}" />
#end

So, given this macro definition, how would you write a password input field in the '.vm' file?

Assume the password class has two fields: p1, and p1 for the two passwords that the user would need to enter to change his password.

Thanks very much in advance.

M
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic