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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:50:47+00:00 2026-06-03T08:50:47+00:00

I am working on a Grails project, its an accounting project. We have multiple

  • 0

I am working on a Grails project, its an accounting project. We have multiple clients and they can have multiple types of accounts. I have to create the ‘create’ page for client, there should be a way to add multiple types of account to the client.

So I was thinking of making a drop-down list with account types and few text boxes to enter account name and other info about account. Also, as a client can have multiple accounts, so I want to create a ‘add’ button, when clicked it would display a new row to add a new client. I have done this kind of UI before using javascript but in this case, as there is a drop-down list and other components, I think it would be very hard and may not work.

I was thinking of creating a partial view which would render each time user clicked the ‘add’ button with additional row, problem with this would be during validation errors, edit page and i would also have to pass all values each time user clicks ‘add’ button.

Is there any other for doing this?

  • 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-03T08:50:49+00:00Added an answer on June 3, 2026 at 8:50 am

    For the template approach you must use ajax if you don’t want to carry on the params that the user has already set.

    It is possible to make new drop-down lists appear (or any group of elements inside a <div>) when a user clicks a button, since Grails already comes with jQuery you might want to take a look at the .clone() method.
    The problem with the two listed approeaches is that it will be possible to have duplicates.

    Now, another option is to use checkboxes, so you can check just the type of account you want.

    But to be honest it does seems a bit odd or even inapropiate to let the user choose the type of account he wants with such freedom.

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

Sidebar

Related Questions

I'm working now together with others in a grails project. I have to write
I have been working Quartz framework in my grails project with lib called quartz-all-1.7.3.
I am working on a grails project and I have put a .jar file
I'm working on a grails project and can't for the life of me figure
I have been working with a project which is using grails / hibernate with
I have been working on a project which uses Grails with Hibernate... Now the
We are working on a new project with Grails 2.0.1 and Spring Security. The
I'm currently working on a project using netbeans 6.9 and grails 1.3. I'm trying
I have been trying for 4 days to get app-engine and grails working together
I'm working through the Grails In Action book and have noticed 2 instances that

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.