Jerry,

Try using <nested:define> tags to make bean references that the display tags
could then get a hold of and use. Otherwise, there would be no other way
unless the display tag source code was updated to recognise and use the nested
context.

Hope this does the trick.


Arron.



> I'm trying to get the <display/> tag library to work with my nested bean
> structure without much luck, and after screwing around with this for 
> the past three days, I'm ready to throw in the towel.  If anyone can 
> see what it is I'm doing wrong, I'd appreciate it.....
> 
> Basically I've got the following (currently):
> 
>       <nested:iterate property="list1">
>               <nested:iterate property="list2">
>                       <nested:iterate property="list3">
>                               <nested:write property="item1"/>
>                               <nested:write property="item2"/>
>                               ....
>                       </nested:iterate>
>               </nested:iterate>
>       </nested:iterate>
> 
> This works fine, as I get the values for item1, item2, etc.  I now 
> need to replace the last <nested:iterate/> with a <display:table /> 
> tag with appropriate <display:column />'s.  I've tried several 
> things, including:
> 
>       <display:table list="list3">
>               <display:column property="item1"/>
>       </display:table>
> 
> I've also tried to set a page-scope object on the 'list2' iterate:
> 
>       <nested:iterate id="myObject" property="list2">
>               <display:table list="myObject.list3">
>       ....
> 
> Whatever I try I am consistently getting a JSP exception thrown of 
> 
> ERROR 01/19/2004:12:07:51 - Error looking up property "specimenId" 
> in object type "java.lang.String" Exception: [.LookupUtil] Error 
> looking up property "specimenId" in object type "java.lang.String" 
> Cause:     Unknown property 'specimenId'
> 
> from 
> 
> org.displaytag.util.LookupUtil.getBeanProperty(LookupUtil.java:210)
>       at org.displaytag.model.Column.getValue(Column.java:93)
>       at
> org.displaytag.model.Column.createChoppedAndLinkedValue(Column.java:144)      at
org.displaytag.model.Column.getOpenTag(Column.java:120)         at
org.displaytag.tags.TableTag.getHTMLData(TableTag.java:1136)    at
org.displaytag.tags.TableTag.doEndTag(TableTag.java:847)
> 
> Help!  I'm at my wits end on this.  Any ideas?  Or will the 
> <display/> taglib just not work with nested beans?
> 
> Thanks!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the individual or 
> entity to which it is addressed. If you are not the intended 
> recipient or the person responsible for delivering the transmission 
> to the intended recipient, be advised that you have received this 
> transmission in error and that any use, dissemination, forwarding, 
> printing, or copying of this information is strictly prohibited. If 
> you have received this transmission in error, please immediately notify
> LabOne at the following email address: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to