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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:34:13+00:00 2026-05-22T18:34:13+00:00

Hey. I have this controller: def participated_favourite = { def user = User.get(1) def

  • 0

Hey. I have this controller:

def participated_favourite = {

        def user = User.get(1)
        def conferenceUser

        def original = ConferenceUser.findAllByUser(user)
        def temp = ConferenceUser.findAllByUserAndIsFavourite(user, 1) // all conferenceUser filtered by User

        def priz = [:]
        def subm = [:]

  ...
  ...

  [temp: temp, priz: priz, subm: subm, orig: original]
}

I want now to be able to select in a selectBox, the list of conferences passed by ‘original’ (in the participated_favourite.gsp).

How can i do that?

<g:select name="" from="${orig.list()}" optionKey="id" value=""  />

This is giving me an empty select box which shouldnt. because there is one record in my database. What am i doing wrong?
Thanks in advances,


EDIT______________

I have in same gsp the folowing:

<g:each var="it" in="${orig}">
 <table cellspacing="2">
                <tbody><tr>
                   <th>Name</th>
         </tr>
                    <tr>
                   <td class="color1">${it.conference}
</td>
</tr>
</tbody>
</table>
   </g:each> 

And it is p+rinting the values. So i dont know what is the problem in the select..

  • 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-22T18:34:13+00:00Added an answer on May 22, 2026 at 6:34 pm

    Try giving the name attribute a value.

    —EDIT —–

    Try the following to troubleshoot:

    Does this work?

    <g:select from="${ConferenceUser.list()}" />

    If so, how about this?

    <g:select from="${ConferenceUser.list()}" optionKey="id" />

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

Sidebar

Related Questions

Hey I have this code right here: http://pastie.org/534470 And on line 109 I get
Hey all, I'm about to rip my hair out. I have this client that
Hey all, this is the code i have to check for a day thats
Hey all- I have looked this up on here and Google but none of
Hey all... I have a view controller (A) which on some action, alloc init's
Hey all, this is a newbie ASP.NET MVC question. I have a view that
Hey all i have a mind bug with this wile loop , i am
Hey all, Sorry its me again. This time I have a question that I
Hey i have this div that shows as a popup: <div class=popup> </div> Then
Hey I have this code but it doesn't work because it is expecting a

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.