You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Pugh, Eric" <EP...@MuseumCompany.com> on 2001/11/23 21:19:01 UTC
Doing foreach($treeNode in $DefaultMutableTreeNode.children)
Hi,
I am using the Swing TreeModel to store a tree structure. I would like to
output it using velocity. Each of my nodes is a DefaultMutableTreeNode.
I want to do foreach($treeNode in DefaultMutableTreeNode.children), however
this seems to never enter..
Can you do a foreach on something that returns an Enumeration? Or does it
have to be a Vector/Hashtable/ or Array only?
Thanks,
Eric
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Doing foreach($treeNode in $DefaultMutableTreeNode.children)
Posted by "Geir Magnusson Jr." <ge...@earthlink.net>.
On 11/23/01 3:19 PM, "Pugh, Eric" <EP...@MuseumCompany.com> wrote:
> Hi,
>
> I am using the Swing TreeModel to store a tree structure. I would like to
> output it using velocity. Each of my nodes is a DefaultMutableTreeNode.
>
> I want to do foreach($treeNode in DefaultMutableTreeNode.children), however
> this seems to never enter..
>
> Can you do a foreach on something that returns an Enumeration? Or does it
> have to be a Vector/Hashtable/ or Array only?
For the public record, yes, you can do an Enumeration...
> Thanks,
> Eric
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>