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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:03:31+00:00 2026-06-16T21:03:31+00:00

I am trying to render a list within a list while using the groovy

  • 0

I am trying to render a list within a list while using the groovy template for play framework 1.2+. However, when I use the #{list} tag within a #{list} tag, I do not get the desired result. Can anyone share how they have approached this in while using the groovy template for play (whether using Groovy or CSS). Thanks in advance

  • 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-16T21:03:32+00:00Added an answer on June 16, 2026 at 9:03 pm

    I created a little sample project with Play 1.2.5 and modified these two files:

    Application.java:

    public class Application extends Controller {
    
      public static void index() {
        List<List<String>> listWithLists = new ArrayList<List<String>>();
    
        List<String> listInList1 = new ArrayList<String>();
    
        listInList1.add("1st element in 1st list");
        listInList1.add("2nd element in 1st list");
    
        listWithLists.add(listInList1);
    
        List<String> listInList2 = new ArrayList<String>();
    
        listInList2.add("1st element in 2nd list");
        listInList2.add("2nd element in 2nd list");
    
        listWithLists.add(listInList2);
    
        render(listWithLists);
      }
    }
    

    index.html:

    <ul>
    #{list items:listWithLists, as:'listWithinList'}
      #{list items:listWithinList, as:'string'}
        <li>${string}</li>
      #{/list}
    #{/list}
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to render a list, each of which has an ajax form to get
I was trying to render a list of objects into a plone template, I
I'm trying the render an HTML list that looks like the following, using the
I am trying to figure out within a Kendo UI template for a list
I'm trying to get my models related using ReferenceProperty, but not have a huge
I'm trying to render a Backbone.js collection as a select list using an Underscore.js
I am trying to create a custom context processor which will render a list
Im trying to render a django template from a database outside of djangos normal
I've been trying to render a webpage using the Adobe Flex / Flash builder
I am trying to render a partial that displays a list of names (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.