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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:12:49+00:00 2026-05-22T16:12:49+00:00

def results = { def results = [:] def conferences = Conference.list() // lista

  • 0
def results = {

    def results = [:]
    def conferences = Conference.list() // lista das conferencias

    String [] conf_origin // array de strings da indexação da classe
    String [] conf_search  = params.conferenceName.split() // array de strings palavras da pesquisa
    boolean test // teste double for

          conferences.each{

                conf_origin = "hi i'm john".split() // indexação
                //conf_origin = "aveiroa".split()
                OUTER: for(int i = 0; i< conf_origin.length; i++){
                            for(int j = 0; j< conf_search.length; j++) {

                                    if(conf_origin[i] == conf_search[j]){
                                        test = true
                                        results.put(it.id, it)
                                        break OUTER;
                                    }
                                }
                            }

                        }

    return [results : results]
}

Hey i am having this problem. If i return: “[conferences: conferences]” my gsp sucessfully do what i want. Altought, when i return ‘[results: results]’ which is suposelly a filtered map of conferences, the folowing error is displayed and i cant figure it out why:

Exception Message: No such property: yearCount for class: java.util.LinkedHashMap$Entry 

PS. Basically, i have

String [] conf_origin —> which is a String array of words

String [] conf_search —> which is a string array of introduced words in search bar.

Then i compare both arrays, and if there’s one match, i break the for and add that conference object to results.

  • 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-22T16:12:50+00:00Added an answer on May 22, 2026 at 4:12 pm

    conferences is a List (of Conference, but it’s untyped in Groovy), and results is a Map. You need either to:

    • make it a List of Conference
    • or return [conferences: results.values()]
    • or adjust your GSP page to iterate over a Map.

    Note that conferences is a variable name your GSP code relies onto.

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

Sidebar

Related Questions

def update @album = Album.find(params[:id]) if @album.update_attributes(params[:album]) redirect_to(:action=>'list') else render(:action=>'edit') end end A Rails
i can do this: def criteria = Category.createCriteria(); def results = criteria.list{ like('categoryName', %abc%)
I have the following python code using the twisted API. def function(self,filename): def results(result):
Here is the standard inclusion tag: @register.inclusion_tag('results.html') def show_results(poll): ... I'd like to know
I have a list of results that I need to pull out various other
in few places in my code I query db using def results = Domain.findAllBySomething
Is there any way to to this: def getChannelListJSON = { def results =
this is in my controller def results #searches with tags @pictures = Picture.all @alltags
I also tried [a-zA-Z]{2,}-\d+ but with the same results def verify_commit_text(tags): for line in
I have this simple helper: def printe_result(data) a_var = ('<a href=http://'+data.a_value+'>A</a>' unless (data.a_value.nil? ||

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.