• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prepare,ModelDriven interface

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




There is one html form[not shown] asking for person details and is targetted to this myAction class.
The prepare method gets automatically called by framework which will create bare person object after that getModel method will be called by the framwork which will return the object created by prepare method and will put it on value stack.
Now the question is, does the framework automatically uses that person object put by getModel method to set the values from the html form or do we have to write some code to do so
and in this case theres no execute method in myAction class, is it fine?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Couldn't you just try it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic