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

  • SEARCH
  • Home
  • 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 6812195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:25:11+00:00 2026-05-26T20:25:11+00:00

How to implement a table cell in Grails that will have a button and

  • 0

How to implement a table cell in Grails that will have a button and pressing it will change data in a cell of the same row? Lets say table has only id, assignment, accepted (yes, no) fields. The value of accepted is by default no and when you click on Accept button it changes to yes.

Should I use Grails UI Data Table or jQuery Grid?

  • 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-26T20:25:12+00:00Added an answer on May 26, 2026 at 8:25 pm

    You can use a submitToRemote button and update the current table row using the update tag. E.g: in your index.gsp:

    <table>
    <g:each in="${yourDataList}" var="data">
    <tr id="dataRow${data.id}">
        <g:render template="tableRow" />
    </tr>
    </g:each>
    </table>
    

    Where your _tableRow.gsp template is something like:

    <td>${data.id}</td>
    <td>${data.booleanValue}</td>
    <td><g:submitToRemote action="updateAction" id="${data.id}" update="dataRow${data.id}" /></td>
    

    Note the attribute value of update is the same as of the <tr> from index.gsp.
    Your controller has an action updateAction:

    def updateAction = {
        Data data = Data.get(params.id)
    
        // your business logic
        data.booleanValue = false;
    
        data.save(flush: true);
    
        render(template: "tableRow", model: [data: data]);
    }
    

    There are obviously other possibilities, but this might be an option for you.

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

Sidebar

Related Questions

I need to implement data table with vertical header orientation and header that's take
is it possible to implement a detail disclosure button on a table view cell
I have a table view. in that one row is having different lines for
I want to implement a basic search/replace translation table in C; that is, it
I have an HTML table with several columns and I need to implement a
I would like to implement or use functionality that allows stepping through a Table
I am trying to implement cell List , and insert my data coming from
I have custom table view cell with images (loaded from app document directory), labels,
i want to display an image besides the text in table cell. i have
I have a table view of custom cells representing individual uploads and each cell

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.