-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello! I'm implementing MVC design pattern. I created a listbox just like the demos. 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:
for (int index = 0; index < attributes.getLength(); index++) {
apellido = attributes.getValue("last");
nombre = attributes.getValue("first");
color = attributes.getValue("color");
}
What I can't seem to do is load those attributes to the listbox using
profesoresList.add(new Profesores(id++,nombre,apellido,color));
I'd be great if someone tell me that maybe is imposible to load data that is being read at the same time. When it comes to static data, is really easy but dynamic as this example creates and obstacle for me.
Hello jolubrech,
Personally i would recommend using the mvvm design pattern because it is much easier to update the listbox and it's model using the @NotifyChange.
But for more information on how to implement it using MVC or MVVM please refer to the following url:
http://books.zkoss.org/wiki/ZKEssentials/Chapter6:ImplementingCRUD
Best Regards,
Darksu
Asked: 2015-02-23 14:40:16 +0800
Seen: 12 times
Last updated: Mar 08 '15
ZK drang and drop and databinding [closed]
Create Crud of a User that has a collection of books
Create a Zk session variable with a menu
Using databinding in menupopup
ZK Clustering, Session Replication Question [closed]
Problem binding values to a composite component
How can i load a constant in .zul
set selectedItem of list in viewmodel - cleaner way? [closed]