Working with nested xmlBeans does not work for me
liorpf <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I have a XmlBean from the following XML:
<lib:TextBox ID="String">
<lib:Size height="0" width="0"/>
<lib:Style>Square</lib:Style>
<lib:TextLines>
<lib:FreeText ColorBoxID="0" ID="String" LineOrder="0">
<lib:Size height="0" width="0"/>
<lib:LayerOrder>0</lib:LayerOrder>
<lib:TextColor ColorUnit="RGB">black</lib:TextColor>
<lib:LetterCase>Upper</lib:LetterCase>
<lib:SpaceToNextLine>0</lib:SpaceToNextLine>
</lib:FreeText>
<lib:FreeText ColorBoxID="0" ID="String" LineOrder="0">
<lib:Size height="0" width="0"/>
<lib:LayerOrder>0</lib:LayerOrder>
<lib:TextColor ColorUnit="RGB">black</lib:TextColor>
<lib:LetterCase>Upper</lib:LetterCase>
<lib:Indent>0</lib:Indent>
</lib:FreeText>
</lib:TextLines>
</lib:TextBox>
I'm trying to drill down to the inner list
This works for me using Apache
BeanUtils.getPropertyValue(bean,"textLines.freeTextArray[1].size.width"),
but doesn't in the ftl:
${component.textLines.freeTextArray[1].size.width} (component is the bean
used as the java model)
Please advise
--
View this message in context: http://www.nabble.com/Working-with-nested-xmlBeans-does-not-work-for-me-tp18732337p18732337.html
Sent from the freemarker-user mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/