-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a set of data, and I wanted to use the tree component to layout out the data with dates being at the root, various times under each date, a group undeer each time, and then a grid of information under each group. I'm pulling this information form a database. Is it very feasible to use the tree component for this?
Also, just about the best thing I have found is this http://www.zkoss.org/smalltalks/zkTreeModel/ Using the TreeModelA (under the section titled - Set, Insert, Append, and Remove Data Entries)
I've tried applying that to my page (copy and paste actually; the zscript code and the java file) and i get the following error
org.zkoss.lang.SystemException: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
If that is confusing, or it's lacking information, I am more than willing to provide any extra information.
I appreciate any help I can get.
Thank you.
well-formed character data or markup.
Means in most cases that there is a '>' missing or </xxx> .
Something in you 'paste and copied' code is false.
regards
Stephan
Yes, thank you terry. i have that working now.
As for my other question... Is it possible for a tree to contain a grid?
I have yet to see anything like that, and all of my attempts have been unsuccessful.
Best I have been able to do is have nothing be displayed or perhaps "%lt;grid%gt;", etc.
If anyone knows how i might be able to do that, I would appreciate the help.
Again the grid is going to be the 3rd or 4th inset (so ... great grand child to the root)
Thanks again.
@james
Is it possible for a tree to contain a grid?
i mean yes. Play with your zul-editor.
Eventually you must insert around the grid a hbox, div or borderlayout
I tip on borderlayout.
regards
Stephan
Asked: 2009-02-27 20:30:37 +0800
Seen: 679 times
Last updated: Mar 03 '09