Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7040275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:53:56+00:00 2026-05-28T01:53:56+00:00

is it possible to have a table in a single form which shows one

  • 0

is it possible to have a table in a single form which shows one instance of a domain object as follows:

(table of domain class “Person” )

Id     Name       LastName
1      John       Doe
2      Jane       Doe
3      Jerry      Doe

Each cell should be an inputfield

the idea is, the table should look like a spreadsheet, I can edit everything and have a single submit button.

If the submit button is pressed all instances of person will be updated.

Do you have an idea how to implement that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:53:57+00:00Added an answer on May 28, 2026 at 1:53 am

    Yes it is possible. You’ll have to build a form with X number of rows for creating (or add a button so the user can make more rows). For updating you’d have a fixed number (all of the entries in your database). The HTML would look like this:

    <input type="text" readonly="readonly" value="1" name="id_0"/><input type="text" name="name_0"><input type="text" name="lastName_0"/>
    <input type="text" readonly="readonly" value="2" name="id_1"/><input type="text" name="name_1"><input type="text" name="lastName_1"/>
    

    The gsp code would vary depending on what exactly you’re trying to do. But you would essentially loop over all of your objects and create the above structure for each.

    In the controller the params object will look like this:

    [id_1:"2", name_0:"John", name_1:"Jane", lastName_1:"Doe", lastName_0:"Doe", id_0:"1"]
    

    I messed with the order on purpose because you can’t rely on order so you’ll have to match up first names with last names based on their number. So you can retrieve the object based on the id, update the properties you need to and save it. If you need help with the gsp code provide some more code and details and I’d be glad to help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible with Hibernate to have a single table in the database, which
Is it possible to have same table name on different schema with different data
Is it possible to have a table and insert data n a single row
I have a single DB table (MySQL) which I am running a simple SELECT
I'll simplify the problem as much as possible: I have an oracle table: row_priority,
I have a table (venues) that stores all the possible venues a volunteer can
Is it possible to have an association mapping a table to itself? e.g. Table:
Is it possible to have a relationship from a user table to a system
Is it at all possible to do database-agnostic table dumps/hydrates? I don't have any
Is it possible to edit computed-column values? I have a computed-col in my table,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.