Announcement Announcement Module
Collapse
No announcement yet.
Form editing with SimpleFormController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form editing with SimpleFormController

    Hi,
    My requirement is to show list of employee details as a result of search operation and i have to edit the employee details by clicking on employee id.

    Now the problem is when i am using SimpleFormController i am preparing the Employee bean to be edited in formBackingObject() method by taking the request Parameter empId. First time when i clicked on the edit link its getting the Employee details and showing in the form. But when i change the values and submit it, it is again calling the formBackingObject() method which is not to be done in this scenario.

    I am newbie to Spring, i think the above said approach is not correct. Can any body let me know how to handle this scenario.

    Thanks,
    K. Siva Prasad Reddy.

  • #2
    Set the property sessionForm of your controller to true. This will prevent a second call to formBackingObject() on a submit.

    Comment


    • #3
      Thanks for your reply.
      It works fine.

      Comment

      Working...
      X