The labels aren't the problem.  I don't want the third level (the Date
objects) at all.  

The way I handled the issue of labels was to create a get label()
function that returns the name field from each VO (since they have
different variable names for their 'label' fields).

See my previous post to see how I got the date objects to not show up
at all.

--- In [email protected], Martin Louis
<[EMAIL PROTECTED]> wrote:
>
> tree needs data like following  so try using the same VO throughout
the nodes
>    
>   +label 
>      - label
>         - label
>    
>   i suggest you create single VO that includes all the attributes of
CategoryVO and ItemVO like this
>   >  label:String -----------------> name and title are same
> >  id:Number
> >  arItems:Array
> >  start:Date
>    
>   if you chaneg "label" to any other string then the "labelField"
property of tree should be set .
>    
>    
>   this id becoz you can assign only one labelField for a tree if you
give different labelFields then it will behave like this 
> 
> ninjascience <[EMAIL PROTECTED]> wrote:
>   Follow up:
> 
> I tried makig the Date field private in my value object.  It still
> shows up as a tree node, and an alert call that references it still
> shows the data!  So much for privacy!
> 
> --- In [email protected], "ninjascience" <[EMAIL PROTECTED]> wrote:
> >
> > m using an array of ValueObjects that contain arrays of ValueObjects
> > as a DataProvider for a tree component.  Everything was working just
> > fine until I added a Date field to one of my Value objects.  Now the
> > tree thinks that they should be nodes on the tree.
> > 
> > My VOs are like this
> > 
> > CategoryVO
> >  title:String
> >  id:Number
> >  arItems:Array
> > 
> > ItemVO
> >  name:String
> >  id:Number
> >  start:Date
> > 
> > I want my tree to look like this
> > 
> > +SomeCategory
> > ++Item A
> > ++Item B
> > +OtherCategory
> > ++Item C
> > ++Item D
> > 
> > but it looks like this...
> > +SomeCategory
> > ++Item A
> > +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
> > ++Item B
> > +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
> > +OtherCategory
> > ++Item C
> > +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
> > ++Item D
> > +++[object Object], 1, , Fri Nov 4 00:00:00 GMT-0800 2005, null
> > 
> > Is there anyway to specifiy which objects get included as tree nodes
> > and which dont?  I want to add a third level of composition within
> > each Item node.
> > thanks,
> > --
> > Ryan P. Miller
> >
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
>     
> ---------------------------------
>   YAHOO! GROUPS LINKS 
> 
>     
>     Visit your group "flexcoders" on the web.
>     
>     To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>     
>     Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
> 
>     
> ---------------------------------
>   
> 
>   
> 
> 
>               
> ---------------------------------
>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to