Announcement Announcement Module
No announcement yet.
Table editing example in Spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Table editing example in Spring


    Where can I get simple table editing example in Spring. "Developing a Spring Framework MVC application step-by-step" is fine, but it updates price in all records.

    I can select row in html table using JavaScript, but what is the right way to pass record data (or record id) to editor form?

  • #2
    Take a look at this post
    Last edited by robyn; May 14th, 2006, 04:54 PM.


    • #3

      But I can't find answer in this post.

      I suppose that simple example must consist of 2 forms:

      1. Browsing form with table and Add/Delete/Edit buttons. I don't wish to edit it. I wish only select row (with JavaScript) and press button.

      2. Edit form with fields and OK/Cancel buttons.

      How can I pass record data or id from browsing form to edit form? I can use some additional simbols in url on executing POST method, but is this a right way for Spring?


      • #4
        If you just want to pass an id, take a look at owners.jsp in the petclinic sample and ListOrders.jsp in the jPetstore sample.