Skip to Content
0
Former Member
Mar 13, 2007 at 07:15 AM

Bind node to Collection

13 Views

i have a method which return a collection

Command Bean
public getResult(){
Collection newcol=new ArrayList();
bean.setxxx(xxx);
bean.setxxx(xxx);
bean2.setxxx(xxxx);
bean2.setxxx(xxxx);
newcol.add(bean);
newcol.add(bean2);

return newcol;
}

webdynpro
public void init(){
col=getResult();
wdContext.nodeEmailOutCommandBean().bind(col);    //bind to bean 
wdContext.nodeEmailOutDetailsCommandBean().bind(col);  //bind to bean2
}

how can i do this...

Message was edited by:

yzme yzme