Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

nested:nest etc

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a property on a form bean that stores an object that contains an array list.
The array list contains a wrapper object that contains 4 other objects - each of a different type.
I try to access the respective properties of each of the four objects contained in the wrapper object in the following way:
<nested:nest property="propertyList">
<nested:iterate id="objects" property="cachedProperties" indexId="cachedPropertiesIndex">
<TABLE>
<TBODY>
<TR>
<TD><TABLE border="0" width="100%" bgcolor="#ff0000">
<TBODY>
<TR>
<TD nowrap width="10%" bgcolor="#ffffff"><FONT size="1" color="#000000" face="Verdana"><B>
ZAR: <nested:write property="property.formattedPrice"/></B></FONT></TD>
To be precise:
The propertyList property contains the array list and this array list is called cachedProperties.
The array list contains PropCargo objects.
Each propCargo object contains a:
1. Property object
2. Features object
3. Images object
4. Client object
I want to access properties of these objects in the same nested:iterate clause by going something like: property="property.formattedPrice" for example.
Am I doing this correctly or have I missed something?
The HTML table doesn't render.
Help will be greatly appreciated.
Zain
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic