• 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!