-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, i have one zul page,in that rows should be add dynamically.For example if we click retrive subscriber list then the details should come from database and add to that <rows>.But if we have one row we are not getting that error but if we have more than one row am getting that error. we used old version zk3.0 but now we have to use zk7.With old version i didn't get any error but if i use zk7 am getting that problem.
You have twice the same id used. Remove the id from your row and let zk generate an id.
Greetz chill.
Concept of using id is to give the component a reference name so that we can use that name while wiring it to viewmodel.
The issue would be where you are dynamically creating your rows in ViewModel.
inside the loop you must be setting something like row.setId("id"); so for one row this will work,if rows get added up,the issue will come. so either remove the "id" line or increment id inside the loop :
row.setId("id"+i);
i++;
I hope this helps.
Asked: 2014-05-27 10:09:20 +0800
Seen: 49 times
Last updated: May 27 '14