0

Tree + Live Data

asked 2009-02-27 20:30:37 +0800

james gravatar image james
255 2

updated 2009-02-27 21:37:00 +0800

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.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-02-28 20:04:09 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-02-28 20:05:19 +0800

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

link publish delete flag offensive edit

answered 2009-03-02 23:20:30 +0800

james gravatar image james
255 2

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.

link publish delete flag offensive edit

answered 2009-03-03 10:28:37 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

@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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-02-27 20:30:37 +0800

Seen: 679 times

Last updated: Mar 03 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More