> I turned off the showNav attribute in the ext:tree2 tag, which caused also
> the showLines to turn off. I don't think this was the intended behaviour. I
> couldn't get it to turn on again even by explicitly specifying
> showLines="true" 

That's not a bug, that's intentional.  IMO it doesn't make sense to
have the connecting lines but no nav icons.  What would you have the
lines connect to?  (It's not really possible to make them connect to
the folder icons for example.)

> Also, when I specify the imageLocation, for the nav buttons this works fine,
> but for the trunk lines and the spacer images, it does not behave as
> expected. 
> 
> Say my appname is TestApp and the image folder is directly below it with the
> name /img, so all others work fine and the it looks for the image in
> /TestApp/img folder, but for the spacer and the  line-trunk images, it looks
> for the img in a /img folder instead of /TestApp/img folder. Do I need to
> specify the imageLocation attribute somewhere else other than the tree2 tag?

This is just due to a little bit of weirdness with UIGraphic (at least
as implemented by MyFaces.)  The HTML for the nav icons is created by
dynamically creating an instance of UIGraphic.  Then the image
property is set using the supplied location information.  The HTML for
spacer, etc. is written out directly.  Just use TestApp/img for the
location of those images.

HTH,
sean

Reply via email to