• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

How to iterate neseted beans?

Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I want to iterate through a nested bean, it is 3D.

The first bean contains an ArrayList, of the second bean.
Each second bean contains an ArrayList of the third bean.
Each Third bean contains different attributes.

I want to print Attributes of the third bean in text-field and the user should edit them
and committ changes by pushing the submit-button.

I can call the getter of the attributes in the third bean, but how can I make the
application call the setter?

This is my code... what should I do?

<nested:iterate id="line" property="resultList" name="kombinationForm">
<nested:iterate id="elementLine" name="line" property="resultList">
<nested:text name="elementLine" property="oneAtribute"/>

Can anyone help me?

mfg hal arres
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic