-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Is there any possible way that I could read the content of an XML file and Bind it to a combobox or listbox (Another possibility would be great to!). I'm able to parse de document using SAX parser. But once I have it, don't know how to bind it to a component I'll appreciate the help!
Hello jolubrech,
You could use the MVC or MVVM design patterns in order to load the data to the listbox.
There are many good examples at the demo section of the zk website, but you could also look at the following example:
http://zkfiddle.org/sample/3kvld74/1-Simple-MVVM-sample#source-1
Best Regards,
Darksu
Asked: 2015-02-21 18:23:40 +0800
Seen: 12 times
Last updated: Feb 21 '15
Ok, I did what you told. I created a listbox just like the demo. I'm doing the parsing from a xml file and reading some attributes that i'm desperate to show in that listbox. I read the attributes, I save them as string variables. Then when I try to fill the listbox like this: the attributes are sa
jolubrech ( 2015-02-22 20:39:06 +0800 )edit