Skip to Content
0
Former Member
Jan 18, 2008 at 01:01 PM

To populate values in Table

17 Views

Hi,

I need to populate values in a table which i got from the bean...

i have retrived the values in Class[] and if i populate the table (as in code below).. i get only the first record..

i have created a value node (GroupNode) in the view context and iam binding the values to it from my Java Command Bean (CategoryBean)..

The code is as follows..

GroupDTO[] groupDTOs = wdContext.currentCategoryBeanElement().modelObject().RetSameCatidObj();

// Collection groupList = new ArrayList();

for(int i=0;i<groupDTOs.length;i++){

groupList.add(groupDTOs<i>);

IPrivateDel_sda.IGroupNodeElement ele = wdContext.createGroupNodeElement();

ele.setCategoryid(groupDTOs<i>.getCategoryid());

ele.setGroupid(groupDTOs<i>.getGroupid());

wdContext.nodeGroupNode().bind(ele);

}

Is there any workaround to solve the issue...

Thanx.

Shravan.