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 9118969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:16:56+00:00 2026-06-17T05:16:56+00:00

I am learning Grails and I have a question: How do I prepopulate a

  • 0

I am learning Grails and I have a question:
How do I prepopulate a field (like a list a check buttons)in Grails?

Please forgive me for such a trivial question. I have not tried anything yet. I am looking for general council as to the best way to do this in Grails.

ironmantis7x

  • 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-06-17T05:16:57+00:00Added an answer on June 17, 2026 at 5:16 am

    Grails have the checkbox tag to create one checkbox. If you have a list, you can iterate over it and create the checkboxes, and the checked attribute will define if it will be marked or not.

    So you can have two lists:

    • List 1: Values available
    • List 2: Values from the file

    Populate those lists in your controller, and in the view, iterate over list1. If the value exists also in the list2 (loaded from your file) you set the checked to true.

    If you need a more specific answer you will need a more specific question.

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

Sidebar

Related Questions

I just had a quick question as I'm still learning grails. I have a
I'm developing a Grails web application (mainly as a learning exercise). I have previously
I'm learning grails, and I have a problem. I have 2 classes, lets say:
I'm learning to use Grails and have run into a situation I don't understand
I'm learning Grails/GORM and as I've understood it the current best practice is not
I have been using Grails for last 3 weeks (learning and working). I have
Learning Javascript and have a question about global variables. From my reading, most recommend
I'm still learning Grails and seem to have hit a stumbling block. Here are
Learning PHP and I have a question. How does one obtain an element from
Learning about SQL datatypes in PL/SQL. I have a question about what datatype the

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.